r/javahelp • • Dec 08 '20

Popular Java frameworks worth learning ?

For people that have been using Java in a work environment or that are looking for employment , What java libraries should I pick up as a recent graduate ?

17 Upvotes

30 comments sorted by

View all comments

32

u/marvk Dec 08 '20

Spring

 

 

 

 

 

other things

4

u/[deleted] Dec 08 '20

Given how Spring usually applies to big code-bases, how do you suggest people learn it while working full time? Just make a big product that uses it?

13

u/marvk Dec 08 '20

Check out https://spring.io/guides, check out https://github.com/spring-projects/spring-petclinic, do not read Spring in Action, Fourth Edition as it's hot garbage with code that ranges from plainly not working to not even compiling.

3

u/8bagels Dec 08 '20

You can build big projects with it but some of the projects I’m most proud of are tiny but crazy useful. For example I have a binary or command I need run on my machine (some proprietary thing at work), I’d like to execute it in a more event driven way (message on a queue or http request). I have a tiny spring app that exposes a web endpoint, authenticates the inbound user, and then executed the binary with the data in the POST. I turn the results into json and reply with it. It’s small but spring helped with the security, json, externalities config, and the init script to allow Linux systems to run it as a service. I could of wrapped that all up myself but it was so fast and easy with spring. It has run flawlessly for years only stopping for me to deploy new versions (I like to keep my dependencies up to date)

You may not have a use case just like that but the point was it’s a small and useful app I made, not a huge enterprise app, but I learned a lot about spring in the process.

Like another commenter said look at Spring Guides and then start to mash them up. Follow the web service guide, follow the jms guide, then combine them to expose a web endpoint that when called queues up messages on a queue. Now swap out the jms for aws SQS. And just play with tech

What’s something you love? D&D? Make a small app that fills a character (4d6 drop lowest) and hook that up to a web endpoint or just run it as a command line runner. But return the character and some of the other stats figured out and randomly generate a character name and randomly generate an adventure hook. Hook that up to the Twitter api and once a day your followers are treated to a randomly generated character and adventure .

To learn take your interests and code against them

1

u/[deleted] Dec 08 '20

I have a tiny spring app that exposes a web endpoint, authenticates the inbound user, and then executed the binary with the data in the POST. ...

That sound pretty sweet!

3

u/wolfanyd Dec 08 '20

Spring Boot

2

u/JacobJMountain Extreme Brewer Dec 08 '20

I’d recommend learning spring first, it can be difficult to learn what spring boot does for you / the difference otherwise

1

u/desktoppc Dec 12 '20

any course recommendation? My background is Python Django. I shocked that in Java Spring you have to implement your own ORM and you have to configure the SQL query (I haven't done anything like this before in Python Django).

How do I start to learn? There is so many spring frameworks like Hibernate, Security, etc.

2

u/HecknChonker Extreme Brewer Dec 08 '20

It really isn't just for large products. I'd say the most common use case is for building microservices these days.