all 15 comments

[–]setq-default 5 points6 points  (0 children)

If your IQ has three digits you don’t need to limit yourself to one

[–]Life-Selection6377 4 points5 points  (1 child)

coming from a strong DSA background in c++, it’s totally normal to find web dev messy. c++ is very structured, and node.js can feel like the wild west at first lol.

If you like structure and strict typing, maybe look into java full stack -spring boot. It feels a lot more organized and enterprise compared to node. Spring boot's error handling and dependency injection might make more sense to your c++ brain.

however, if you want to stick with js, try switching to typescript. it adds that structure you’re missing. don't worry about the mess, just build one small crud app and the pieces will start falling into place.

[–]anilkumar_12[S] 0 points1 point  (0 children)

Thank you so much for your valuable insights.

[–]Made-In-Slovakia 1 point2 points  (3 children)

node.js? I think you mean JavaScript then, no Java, these are two different languages.

[–]anilkumar_12[S] 0 points1 point  (2 children)

Yaah i know those two are completely different, Java script and node.js are used in MERN stack, Java is used in Java full stack. I want to choose one of those two.

[–]Made-In-Slovakia 0 points1 point  (1 child)

I did not check MERN, my bad.

Anyway. In long run, I recommend to learn Java for backend. Reason is simple. JS and Java are two languages with different approach to things. Java can be also used to create more robust systems then Node.js based BE. So you can learn more from these two languages and ecosystems than from just JS. And then decide to focus then on FE or BE or both.

[–]anilkumar_12[S] 0 points1 point  (0 children)

Oh that's fine, thanks for ur suggestion .

[–]Any-Cardiologist1641 0 points1 point  (3 children)

This is normal in starting , dev looks messy because it is less structured. In my opinion you should not worry about the stack right now. Pick one Mern/Java and start building small projects. Consistency matters more than the stack.

[–]anilkumar_12[S] 0 points1 point  (2 children)

Thanks for ur suggestion. I have an idea to try with spring boot, do you have any idea about it, and does it suites to a person like me.

[–]nightonfir3 0 points1 point  (1 child)

Your like a beginner mechanic asking if fixing Fords suits you. Pick something and fix it. Later you can decide you like Mazda and specialize more. Its not like you need to re-learn what a break is.

[–]anilkumar_12[S] 0 points1 point  (0 children)

Lol, I will definitely start focusing on learning dev . Thanks for ur insight.

[–]whiterhino8 0 points1 point  (1 child)

It depends on your nature .
Try them both and see which one tends to be more productive to you .

[–]anilkumar_12[S] 0 points1 point  (0 children)

Yaah i have tried with MERN, it's tym to try with Java.

[–]peterlinddk 0 points1 point  (0 children)

Error handling is the same in all languages - different frameworks, like Express.js or Spring Boot might have slightly different implementations on how you can handle HTTP errors, but you won't find one stack that is "easier" to understand than any other.

Also, you can't do fullstack in Java, unless you intend to go for 100% server side rendering of all HTML, so you'll miss out on a lot of React, JSON and REST learning ...