Discussion JS on the backend feels weird to me after years of using Spring Boot
Ive been working with Spring Boot on the backend and React/Angular on the frontend, so I'm in JS/TS pretty much every day. on the frontend it all makes sense to me when im handlign components ,state, UI in general and i have no complaints there.
But every time I try to build a backend in Node, I hit this weird mental block, with spring I'm used to structure being baked in like DI and clear layering, transactions and validation handled for me, itsl ike theres one dominant path of like this how u handle stuff. In Node it feels like im assembling my own framework from parts i pick a router then a validation lib then an ORM then something for DI, and every project ends up organized differently.
I know part of this is bias. plenty of people run serious backends on Node, and NestJS basically brings the Spring style over with modules, decorators and DI. But a few things still bug me. TS types vanish at runtime, so you need something like Zod to actually validate input, while in Java the framework and type system do more of that work for you. I also trust the JVM more for heavy workloads, with its threading model, profiling tools and mature libraries for things like batch jobs and enterprise integrations.
its like i have a mental block , do I just need to practice more on it more !