4 ms·
JS enjoys popularity among other things because people don't want to write code twice. SPAs at a minimum need server side rendering for SEO and faster initial d
by qaq 11y ago
JS enjoys popularity among other things because people don't want to write code twice. SPAs at a minimum need server side rendering for SEO and faster initial delivery for better customer experience. To be honest ES6 and TypeScript is very far from shitty. If you take a close look at people who are pushing node adoption in major projects they are anything but "people who are afraid of learning a new language".
- andrewingram 11y agoFor my personal project, my web client is written in React (with Relay), talking to an Elixir-based GraphQL server. I'm still learning the language (Elixir), but i'm much more productive than I am with my Relay-based project at work which is using the JavaScript implementation of GraphQL.
- qaq 11y agoThat very well might be true and will work well until you need to support server side rendering for SEO :)
- andrewingram 11y agoSorry, I didn't explain well. When I say client I also mean server-side rendering since it's basically the same code.
- rcaught 11y agoYou have to write code twice, otherwise you are trusting everything the client sends.
- qaq 11y agoHmm don't really follow your argument. The only extra thing I need to write are checks to exclude code that should not be executed server side. Thats a long way from effort required to implement same thing in 2 languages.