Ask HN: What's the best source code you've read?
21–30 of 271 posts
Re: Ask HN: What's the best source code you've read?
#22It feels like the logical end state of "clever" code, for better or for worse. Or, alternatively, what happens when a standard library is gigantic but each keyword is 1-2 characters.
Re: Ask HN: What's the best source code you've read?
#23Re: Ask HN: What's the best source code you've read?
#24Peter Norvig's spell checker: https://norvig.com/spell-correct.html
Re: Ask HN: What's the best source code you've read?
#25Re: Ask HN: What's the best source code you've read?
#26One of the most surprisingly clear code bases is LLVM. It’s an old complex beast, yet it’s organized beautifully. I mean, it has a lot of essential complexity but little accidental complexity. That’s usually what I strive for when coding. Complexity is sometimes unavoidable, that’s fine, that’s why it’s essential. However, avoidable complexity should be… well… avoided.
> a lot of essential complexity but little accidental complexity Nice one. I'll copy that.
Re: Ask HN: What's the best source code you've read?
#27Re: Ask HN: What's the best source code you've read?
#28One of the most surprisingly clear code bases is LLVM. It’s an old complex beast, yet it’s organized beautifully. I mean, it has a lot of essential complexity but little accidental complexity. That’s usually what I strive for when coding. Complexity is sometimes unavoidable, that’s fine, that’s why it’s essential. However, avoidable complexity should be… well… avoided.
> a lot of essential complexity but little accidental complexity Nice one. I'll copy that.
Re: Ask HN: What's the best source code you've read?
#29Re: Ask HN: What's the best source code you've read?
#30Shodan. I used its codebase to learn python and recommend it everyone else.