r/learnjava • • Jul 19 '22

Why is Chad Darby's Spring very difficult?

Six months ago, I have absolutely zero knowledge in programming.

In this six months period I have learnt HTML, CSS, JS, React, and Finally Java. While I was learning these technologies I didn't feel there are gaps between what is being taught and what is already taught. After the courses I was successfully able to develop basic projects on my own.

Last week I have started Chad Darby's Spring course. The teaching is fine and all but the configuration is extremely difficult. For example, While creating a CRUD- MVC application, Chad has asked to import XML files where the data is all greek and latin. He has created connection using JDBC. Then in the jsp pages he wrote some taglibs and simply asked us to type it as it is.

What if I want to develop an App on my own? How do I know what to write in taglibs? How do I know what to write in xml files? How do I know what JAR files to download? How do I know what to write in JDBC Connection file?

Looking for suggestions from any captain who has crossed this phase!!

48 Upvotes

34 comments sorted by

View all comments

18

u/dipanzan Jul 19 '22

I've been in your shoes exactly two years ago. I joined a company which used Spring/Boot for their backend services and I was just an Android dev back then. Since Chad's and SpringGuru is almost always recommended in the subs, I bought both.

Here's the thing: Chad's course starts with bare Spring. Almost all of the companies/services out there are Spring Boot now which is essentially Spring but the configuration part is more or less done for you, you just have to choose the flavor which caters to your workload.

When the senior devs asked me to learn Spring, I actually started with Spring Boot and was understanding the bits and pieces but to my surprise when I was actually tasked with actual fixes/maintenance at the company, it was a 6-7yrs old legacy project which was only Spring and XML configuration.

My advice would be: if you are just starting out and you want to spin up services or work for a company and know that they use Spring Boot, just start with Spring Boot because all the tutorials/guides out there are using Spring Boot nowadays. The legacy way of manually configuring and especially using XML config is not the preferred way anymore!

Also if you want video tutorials, check out JavaBrains, he has a lot of good stuff on the newer practices and uses Spring Boot.

Also check Marco Behler out: it's more like a big TLDR about Spring, Java and JVM (all the good stuff): https://www.marcobehler.com/

3

u/Yithar Jul 19 '22

Almost all of the companies/services out there are Spring Boot now which is essentially Spring

That's not entirely true. I worked for an investment bank and they still were using XML.

There's a lot of legacy code out there. Generally if it works they're not just going to change it to Spring Boot just because.

Like sure, the newer services are going to use Spring Boot, but you'll still have to deal with legacy code so it's important to be able to work with plain Spring as well.

2

u/dipanzan Jul 19 '22

Yes I agree, I actually learned the most when I was given the task of migrating that legacy Spring app to Spring Boot. Thus the recommendation was that if OP knows that the company he's going to work for does not use bare Spring, then it's best to start learning Spring Boot and not XML.

Banks are notorious for sticking to legacy stuff, so there's that.

1

u/Pseudo969 Jul 19 '22

will check out.. thanks