3 ms·
I’m not sure I’d share a lot of code between server and client even if I could, but sharing the odd domain type, some utilities etc might be handy. The univers
by alkonaut 9y ago
I’m not sure I’d share a lot of code between server and client even if I could, but sharing the odd domain type, some utilities etc might be handy.
The universalness I want is that I want one language, package manager, toolchain, IDE etc for all the code I’m working on. Worst case would be to have the two platforms being slightly different. Say two IDE’s with slightly different shortcuts, two curly brace languages with slightly different syntax, two different build systems you need to integrate in the CI etc.
- dbbk 9y agoWhy's that? Why would you want your server response and your client-side app to be different?
- alkonaut 9y agoWhy is what? Why I would not share code? Server response, do you mean in the context of a server that does server side rendering? I was thinking in the context of a normal app: api backend and (possibly multiple) front end rendering apps
- dbbk 9y agoAh, apologies. I meant server response as in the server-rendered version of your client-side app, not your backend server.