4 ms·
> What I still don't fully understand is why people want to write non-webpage software in JavaScript Many good sibling answers already - but another thing to n
by e12e 6y ago
> What I still don't fully understand is why people want to write non-webpage software in JavaScript
Many good sibling answers already - but another thing to note - is that if you want a modern (js) front-end and optional server side rendering (for faster initial load/display and/or to present something nice to search engine crawlers) - you'll probably end up having to execute js on the server side too.
Also, there's the hope of being able to re-use code for business logic, like validating data - you can (should) validate client side for better ux (quick feedback on misding/wrong data) - but since you cannot trust the client you have to validate server side.
Obviously it seems attractive to write that validation code in one place, always having it in sync between client and server.