r/javahelp • • Jul 08 '21

Node dev wants to understand spring

I've been building APIs for a while now and I would consider myself pretty component in Node.js and Express. As a result I know a lot about the Node.js ecosystem (tools, packages, yada yada). I want to transition into Spring Boot and carry over as much of my Node.js knowledge as possible. I've done some research, but the whole Java world is very foreign to me. Can anyone recommend resources that explain Spring concepts while giving examples in Node.js. Asking for a friend.

17 Upvotes

12 comments sorted by

View all comments

24

u/wsppan Jul 08 '21

I think you should learn Java first. Java and Javascript are vastly different languages despite having similar names. Once you have a strong grounding in Java I would only then tackle Spring. It is a very complex framework.

4

u/[deleted] Jul 08 '21

I know the very basics of Java from when I used to do android development, but OOP has always been difficult for me (which is why I gravitated towards the functional style of node). How much java would you recommend I learn before jumping into Spring?

11

u/wsppan Jul 08 '21

Enough to be fluent in OO programming. Spring is a Java framework. You write Java code when using Spring. Java is an OO language.

1

u/[deleted] Jul 08 '21

Yeah aight

3

u/ZukoBestGirl Jul 09 '21

The spring world of java looks a bit different from old JavaEE. With lombok, mapstruct, spring, jdbc and whatever else, the code is written in a much more declarative way.

But before getting into any of that, I'd suggest you get familiar with Java first. Like the other guy said, until you're comfortable with OOP, and maybe also lambdas. Java lambdas are bit clunky, IMHO. But once you get used to them, they're great.

After that, https://spring.io/guides

It's not extremly well organized, so you can skip some of them. Others do very strange things like direct DB access. How I'd describe them is: "Don't take the code as gospel. Just an example for how spring works".

However after you get through 80-90% of them, I'd say you'd have a good start at it.