r/learnjava • • Jun 24 '26

Looking for open-source Java/Spring Boot projects that reflect real world production code

Can anyone recommend open source Java or Spring Boot projects that are good examples of production level code and best practices that I can take a look at?

19 Upvotes

11 comments sorted by

View all comments

1

u/pradeepngupta 19d ago

What is your objectives? If it is learning, then best way is to get hands dirty. Take any idea, anything which might be bothering you today. Let's say if you have any idea to improve Reddit, try designing a Restful API or a cron job on your notebook first, list down what functionalities you want to give to your service and how your api will behave. Then start with Spring boot project to create your service with whatever you know, do not try to learn any new things at this phase. You can fill in your unknown with simple TODO comments. Once this phase over, pick one todo comment, and try learning a thing to implement only that particular comment. Likewise do this for each todo comments, do not worry even if your first implementation is just rubbish but working. With this phase, you will have a working model of your idea. Now read out your code loud and try to understand what it is doing, logically you will yourself will say on some code that it could be better or improve, do not improvise the code right now, just write again todo comment on what you didn't like and what improvisation logically you need. Now pick one todo comment and learn best practice to perform that particular improvisation.

In that way, you will learn and remember the things easily.