r/javahelp • • Apr 16 '19

Shoutout to Spring developers

You guys who understand and use Spring are gods.

This is the most advanced thing I’ve ever seen, all I get are problems and I haven’t a clue how any of it works and honestly at this point I want to go back to single class console based applications.

And I thought Swing was tricky at first.... HA!

18 Upvotes

15 comments sorted by

View all comments

0

u/[deleted] Apr 16 '19

[deleted]

6

u/[deleted] Apr 16 '19

I hate that stuff, I'm trying to show employers how I can understand and use the language, rather than do some abstract algorithm in the console etc. I'm very curious to see how Spring is used in a professional environment, as every single job listing in London requires Java EE and Spring knowledge.

0

u/[deleted] Apr 16 '19

[deleted]

2

u/[deleted] Apr 16 '19

After a little more thought, I think the thing I'm struggling the most with is the idea of choosing which dependencies to use. Like, is it a case of you just use a few a lot ? Or am I supposed to be able to have an idea for what I need, download that specific dependency then use all the things that dependency makes available to me in my program. That's whats blowing my mind.

3

u/slowfly1st Apr 16 '19

Or am I supposed to be able to have an idea for what I need

Yes.

https://start.spring.io/?

Just use a gradle or maven. If you need another dependency, it's a few lines in your build.gradle/pom.xml, and the IDE will download it and setup the project automatically.

2

u/[deleted] Apr 16 '19

That webpage is a fantastic resource, thank you.

I use gradle and maven, I just find it overwhelming trying to think of what dependencies I could use, theres thousands

0

u/[deleted] Apr 17 '19

[deleted]

2

u/[deleted] Apr 17 '19

Oh really! That gives me a lot of hope lol, this thread has given me a great sense of what kind of dependencies we use now.

At first I thought it was like, a gaming add-on type deal, where’s there’s thousands to choose from and you can’t really see them all etc.

But now I see it’s more about choosing the minimum of what you need, maybe following MVC architecture or something. I’ll take some time today to really study some of the core dependencies like Spring-boot and spring-web etc, and see how they work.

2

u/denialerror Apr 17 '19

If this is for your first job, I would just focus on being enthusiastic and show a willingness to learn. Any company worth its salt would expect to teach a junior developer as if they were a blank slate. If they want you to be proficient at Spring without any professional experience, it's because they don't want to pay the rates.

If this isn't your first job and you are an experienced developer, Spring shouldn't be a problem. It is a Dependency Injection framework with some nice web and data access functionality.

1

u/bostown03 Apr 17 '19

I've seen spring bastardized in ways i didn't know could be done. Manual context initialization sprinkled with some reflection because some beans didnt get initialized by the container etc etc... I've seen some things......