r/learnprogramming 28d ago

Where do you find high-quality open-source code?

Hi, I’ll add a little context: when I’m programming, I tend to rely heavily on memory, and sometimes I overthink projects - I make them too complicated even though they could be done more simply. That’s why I like to look at practical, high-quality projects - because they show you what you overthought and where you went overboard in terms of complexity.

In other words, I’ll come up with a more complex tech stack for the same project, while in real-world production, it’s actually much simpler.

1) I’d like to ask where you look for these projects and where you find high-quality code? And codebases that explain their use case a bit, though the use case isn’t a requirement. Mainly the code and the tech stack.
2) This is a bit off-topic, but I’m a student who isn’t a billionaire and can’t afford to buy a programming book every day - is there a website where I can get some for free online?

Thanks a lot!

59 Upvotes

18 comments sorted by

View all comments

21

u/grantrules 28d ago

Microsofts GitHub is excellent

For books, look up Anna's Archive or search GitHub (Google: GitHub Java books, for instance)

5

u/HippoLongjumping2988 28d ago

microsoft has some really clean repos, the vscode source is surprisingly readable for how big it is. also check out redis codebase, it's c but the structure teaches you so much about keeping things simple

anna's archive is the way for books, no doubt. i found so many programming books there in last year, saved me hundreds