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

5

u/iamsooldithurts May 08 '20

Clean Code by Robert Martin.

1

u/AliveShine May 08 '20

Thanks. I'll check the book out. Are there real world examples in book? What I mean is an app being developed and not just specific code snippets.

3

u/calmonad May 08 '20

I think Uncle Bob often referenced a project he worked on called FitNesse. https://github.com/unclebob/fitnesse

1

u/AliveShine May 08 '20

Thanks. I'll check this out.

1

u/AliveShine May 08 '20

Thanks. I'll check this out.

1

u/actuallyrarer May 08 '20

If you understand the S.O.L.I.D principles, read clean Code and read Design Patterns, youll be a quality software engineer better than most haha.

I think the best code i have seen is frustratingly simple. Like "how did you write that so simply" kind of simple. Its really an art form and im jealous of anyone who can do it well.

Srsly check out design patterns though.

1

u/AliveShine May 08 '20

I agree. Understanding SOLID principles, Design Patterns and using them effectively is what best engineers out there do. And it is not very easy. And you're right that some people do write code which is very simple and effective. I am just trying to understand how/what are their mental models. It really is an art.

1

u/TheNarfanator May 08 '20

Those utils, man. They're a game changer for me.

1

u/swearobics May 08 '20

Hey, I was googling this recently and also came across the clean coder, another book by the same guy which came out later. Have you read that too? Is there an order you'd read them in?

1

u/iamsooldithurts May 08 '20

I haven’t read that one. I got the most recent edition of Clean Code I could find. My buddy has my copy but I think it was just a few years old or so.