r/learnjava • • May 07 '20

Good Object Oriented Code

Hi

Can anyone share a link of a github repo where I can read good object oriented code. Not looking for java library code (as they are huge and difficult to dissect) but rather a smaller project/app with some domain. I tried searching but didn't find anything good. Found some basic projects.

Or can anyone suggest me a book or course where you learn it by doing. Trying to get better at OOD and implementation. I have read a lot of theory but want to look at real world examples.

TIA

49 Upvotes

40 comments sorted by

View all comments

1

u/ha_ku_na May 08 '20

Hey, one of the core differences I find between open source software and commercial software development is that you own and deal with data in the latter while the former ones are just tools whose state doesn't change with time(hence no dealing with database or users like in a business POV). So, a lot of what we might actually want to learn from OOP, like- applying design patterns to make software that can evolve as business evolves, or how design patterns fit in with frameworks like spring- can't be learnt by following open source software. Let me know if you agree/disagree and why!

3

u/AliveShine May 08 '20

I agree with you totally. Tools and libraries serve a very specific purpose. They might be object oriented in nature but what I was looking for is a business problem and how to make it good in OO way. Since commercial apps are generally closed source it is very difficult to find sources to refer. I looked around at a lot of places but couldn't find a good example.