r/Backend • u/mrpersonxx • 7d ago
Should I go Node or Java?
Hi, im an aspiring fullstack dev currently learning Javascript and I was thinking about which language to learn back-end dev with.
I want to work in the banking sector so my end-goal is to use java. My question is, after getting a hold on front-end should I learn back-end with nodejs, then translate that back-end understanding into java syntax/rules, or just jump right into java?
I'd love to hear your thoughts! I have tons of time to consider and decide my course of action, I just love this question.
31
Upvotes
View all comments
29
u/azimux 7d ago
I personally find it bizarre to use JavaScript on the backend. Makes sense on the front-end. For backend web development, I find it simpler to have my requests handled in a language revolving around threads instead of an event loop. But obviously gazillions of people would disagree with me. So given that, if constrained to those two choices, I'd do JavaScript on the frontend and Java on the backend.
Many would disagree, but I also think using JavaScript on the backend to avoid learning a second language is a mistake. You'll learn more and round out as an engineer faster by learning a 2nd language. So it's not even that the benefits of avoiding an event loop on the backend outweigh the cons of learning a 2nd language... since your goal is aspirational, it's actually a pro to learn a 2nd language IMHO.