There was a HN thread months ago on this topic. I recall people suggesting well known github repo’s. I’m unsure which ones but you could start at github…
"Ask HN: What's the best source code you've read?" https://news.ycombinator.com/item?id=32793534
Ask HN: Where do I find good code to read?
11–20 of 216 posts
Re: Ask HN: Where do I find good code to read?
#12s/read/train my AI on/
Re: Ask HN: Where do I find good code to read?
#13Re: Ask HN: Where do I find good code to read?
#14Re: Ask HN: Where do I find good code to read?
#15If you're looking for programming inspiration I love these videos
Jon Bentley - Three Beautiful Quicksorts https://www.youtube.com/watch?v=aMnn0Jq0J-E
Bret Victor - Inventing on Principle https://www.youtube.com/watch?v=PUv66718DII
Re: Ask HN: Where do I find good code to read?
#16https://github.com/Svxy/The-Simpsons-Hit-and-Run/tree/eb4b34...
Re: Ask HN: Where do I find good code to read?
#17Good code is working code, code that pays the bills. Focus instead on writing code you can throw away easily, code that you are wholly unattached to and is isolated enough that rewriting it won’t cost absurd hours.
Re: Ask HN: Where do I find good code to read?
#18The Elixir standard library is quite readable I’d say, but it all depends on what you’re interested in? I’d recommend learning Elixir as it’s immutable and a very simple language and does concurrency better than everything else (by inheriting from Erlang/OTP on which it is based) and the packages don’t seem to exhibit the needless churn that goes on in the world of JS, for example.
To folks starting out with Elixir, I suggest reading its standard library. From my experience, there was this aha moment when I started reading `Enum` module.
Also, Elixir's documentation is one of the best out there.
Re: Ask HN: Where do I find good code to read?
#19Give up on “good code”. Its pursuit is how junior devs pesters senior devs based on a delusion that such a thing is possible. Good code is working code, code that pays the bills. Focus instead on writing code you can throw away easily, code that you are wholly unattached to and is isolated enough that rewriting it won’t cost absurd hours.
Re: Ask HN: Where do I find good code to read?
#20This isn't exactly a repo to look at, but the book "Clean Code" is a fantastic read for learning how to write good code. It does have a lot of examples in it, and does a great job explaining everything. https://github.com/jnguyen095/clean-code/blob/master/Clean.C...