4 ms·
I should have stopped reading when the author linked to dart. Regarding SEO/performance for serving static HTML, many frontend frameworks provide a mechanism f
by nahiluhmot 12y ago
I should have stopped reading when the author linked to dart.
Regarding SEO/performance for serving static HTML, many frontend frameworks provide a mechanism for rendering content on the server. For example, React.renderComponentToStaticMarkup (http://facebook.github.io/react/docs/top-level-api.html#react.rendertostaticmarkup http://facebook.github.io/react/docs/top-level-api.html#reac...) can be used to render each static page on the server before sending it over the wire.
Also, I'm not sure how you reduce complexity by coupling view logic with backend datastore logic. In my experience it's far more maintainable to separate the backend and frontend, communicating between them via a REST API/web sockets. That way, everything is independently unit-testable and can be integration tested as well.