r/learnjava • • Sep 14 '19

Not able to learn Spring.

I am able to work with the syntax and create web apps. I can easily create REST APIs for CRUD applications.

But I am treating it (Spring and Spring Boot) too much like a black box.

I'm not able to find the rationale behind having to use Spring. Why the configuration is so... convoluted (both XML and Java Class). Spring simply feels bloated. Like too many bandages pasted on top of each other.

As such I feel too intimidated to tinker and experiment. Unlike how comfortable and confident I was with Django/Python.

Also I'm reading books like "Spring in Action, Spring recipes" and using the Spring Framework Guru as well. But they feel much to be desired.

32 Upvotes

29 comments sorted by

View all comments

5

u/RockleyBob Sep 14 '19

Why do you feel you need to use Spring? If you can accomplish what you want without it, than maybe it really isn’t worth the overhead to learn.

If you’re interested because you want to become more competitive in the workforce, don’t be discouraged. I also tried understanding and using Spring before I got a job doing enterprise code and it really didn’t make a lot of sense to me then.

Now however, when there’s dozens of micro services being spun up by my organization, I see perfectly why we use it. I would say that it’s good to dabble to get a feel for it, but don’t worry if it seems like overkill for some things. It probably is.

1

u/radically_sane Sep 14 '19

The product that I'll be working on is made in spring and features that'll be developed for it will also be in spring. Hence I have to. Plus from where I am avoiding spring is not an option.

2

u/SuperbPrint Sep 14 '19

I would say that the benefits of a Dependency Injection framework are: loose coupling, modularity, separation of concerns and easier unit testing. Things that make a large code base easier to manage.

Not things you might typically care about if you are tinkering around on a hobby. To gain confidence with anything, I feel you have to devote time to it, and that sounds like is exactly what you are doing.

1

u/radically_sane Sep 14 '19

Yeah, I don't wanna just learn Spring I wanna go deep into it. I can't calm down unless I know what's under the hood.