I remember liking the java sdk java source. Great small focused functions and nice use of newlines. You could tell the developers were forged in an era without syntax highlighting and large horizontal screens. Extremely scannable.
Ask HN: What's the best source code you've read?
111–120 of 271 posts
Yes! A fellow square! It's almost always a pleasant surprise to dig in and see how parts of java are actually implemented.
Re: Ask HN: What's the best source code you've read?
#112I have a soft spot for Musl libc just for how clear it is considering it's one of the most widely used libraries in containers and has to perform well in the real world. https://musl.libc.org/
This is the first thing that came to my mind as well.
I've said on here before, it takes real talent to write code which is this legible while still being small and efficient.
Re: Ask HN: What's the best source code you've read?
#113Not a single code-base, but The Architecture of Open Source Application books are worth a look to help get started reading various sources: https://aosabook.org
Re: Ask HN: What's the best source code you've read?
#114Godot is nice
Re: Ask HN: What's the best source code you've read?
#115cperciva writes easily the most approachable, understandable code I’ve ever come across, e.g.: https://github.com/tarsnap/kivaloo
Thanks! I think kivaloo and spiped are probably the best quality code I've ever written.
Re: Ask HN: What's the best source code you've read?
#116Surpised no one has mentioned the Nethack source, small codebase going on close to 40 years.
Re: Ask HN: What's the best source code you've read?
#117The early Go standard library (before it was hyper-optimized.)
I can't understate how valuable it is for a new language's stdlib to be so well written and therefore an excellent reference for style, design, performance, documentation etc. in your own code. Every time you need to lookup how something in the stdlib works, you get more exposure to what good code ought to look like.
Re: Ask HN: What's the best source code you've read?
#118Git without a doubt.
Re: Ask HN: What's the best source code you've read?
#119for me jquery lib was very decent
Re: Ask HN: What's the best source code you've read?
#120I guess scikit-learn?