Live data from Hacker News

Ask HN: What source code is worth studying?

news.ycombinator.com

11–20 of 117 posts

Re: Ask HN: What source code is worth studying?

#15
post #13

For systems programming, I've learned a lot from reading the source for open solaris: http://src.opensolaris.org/source/ And the LLVM compiler is far more understandable than gcc sources: http://llvm.org/viewvc/llvm-project/llvm/

I agree with this, and along the same thought, OpenBSD (or any BSDs really, but OpenBSD tends to favor simpler implementations) source is very clear and concise.

Re: Ask HN: What source code is worth studying?

#18
"Code reading requires its own set of skills, and the ability to determine which technique to use when is crucial. In this indispensable book, Diomidis Spinellis uses more than 600 real-world examples to show you how to identify good (and bad) code: how to read it, what to look for, and how to use this knowledge to improve your own code."

http://www.spinellis.gr/codereading/

Re: Ask HN: What source code is worth studying?

#20
post #15
post #13

For systems programming, I've learned a lot from reading the source for open solaris: http://src.opensolaris.org/source/ And the LLVM compiler is far more understandable than gcc sources: http://llvm.org/viewvc/llvm-project/llvm/

I agree with this, and along the same thought, OpenBSD (or any BSDs really, but OpenBSD tends to favor simpler implementations) source is very clear and concise.

Minix, not being as 'real world' as the BSD's or Linux, is even more readable, if you're just interested in a quick glance at how an OS works.
Post reply on HN