Ask HN: Where do I find good code to read?
121–130 of 216 posts
Re: Ask HN: Where do I find good code to read?
#122Re: Ask HN: Where do I find good code to read?
#123Re: Ask HN: Where do I find good code to read?
#124Lots of source these days has auto-documentation comments. Good IDEs present that documentation, which helps guess what might be worth diving into the Step Into rabbithole.
Often, from a high-quality framework / library I learn a bunch about handling weird edge cases and about writing code for long-term maintainability. And, I often learn some useful constructs and techniques. (And, it's possible to learn useful things from not-so-high quality code too.)
Re: Ask HN: Where do I find good code to read?
#125Re: Ask HN: Where do I find good code to read?
#126I would look for places the code seems to be really liked by its users. Maybe its very reliable, or extensible, or fast, or something else. How do they achieve that? Why do the users say these things? How do they measure / focus / make tradeoffs to focus on those attributes?
Then for painful to use software & common painpoints, why does this happen? Is it a fundamental design decision? Is it just sloppy code? Is in just intentionally slow to be more user-friendly? Or hard to read code because the focus is on speed?
It's all about the tradeoffs and intentional choices...
Re: Ask HN: Where do I find good code to read?
#127There was a blog post from Peter Seibel recently called [Code Is Not Literature)]( https://gigamonkeys.com/code-reading/ ) which pointed out that although everyone seems to agree reading code is great, very few tend to do it regularly. I feel like I get a lot more out of messing with / hacking on code than I do from reading it. I'm sure people vary, but I've got loads more out of open source contributions to sometime…
I typically find the recommendations people make like "here's an example of particularly good code for this particular language / style / architecture" to be more enlightening.
Re: Ask HN: Where do I find good code to read?
#128Minix3 kernel, if you look for C.
Re: Ask HN: Where do I find good code to read?
#129Earlier quoted context omitted.
This is what "top down" coding looks like. In "top down" coding you're told what to do by the boss, given too short a timeline, and forced to push something out the door. Congratulations on figuring out how to create a massive churn rate among your actual good engineers.
Give me engineers who value solving problems, sometimes with code, over “good” engineers every single day of the week.