3 ms·
the big advantage with having the same language on both ends is being to use server-side rendering (isomorphic). So your first page serve includes the initial r
by marcus_holmes 10y ago
the big advantage with having the same language on both ends is being to use server-side rendering (isomorphic). So your first page serve includes the initial rendering of the content, and then the client-side code takes over to handle changes with no refreshes.
If the client is written in a different language than the server then you have to maintain two versions of the page code to achieve this, and they have to be in perfect sync. Hard to do. Easier to write the code once and transpile to JS for the browser (or write the back end in JS).
- michaelmior 10y agoNot necessarily. You can use something like Prerender[0]. [0] https://github.com/prerender/prerender https://github.com/prerender/prerender
- marcus_holmes 10y agobut... that only renders JS... which is what the client speaks, so the client and server still speak the same language
- michaelmior 10y agoYour backend can run whatever language you want. There are examples right on the page that show integration with Rails, PHP, Go, and others.