Live data from Hacker News

Ask HN: What source code is worth studying?

news.ycombinator.com

41–50 of 117 posts

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

#43
Qmail: http://cr.yp.to/qmail.html

It feels well organized almost throughout, and it's a joy to experience the clarity of thought that went into it. In fact, most of djb's code has a similar feeling to it.

Arthur Whitney's code: http://www.nsl.com/papers/origins.htm

Being able to read this (and not merely decode it, but read it, in a manner similar to how you would read a book) will broaden your horizons like nothing else I've seen.

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

#48
post #24
post #19

Earlier quoted context omitted.

Perhaps MediaWiki?

Personally, I wouldn't recommend it. Unfortunately I can't give a better alternative, but I've done some hacking on MediaWiki since version 1.7 and while it's some of the better examples of PHP out there, it still leaves lots to be desired in different places.

Thanks. My post was just a guess.

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

#50
post #14

Your compiler's source code. That should shake your confidence in the world.

for an easier time, your favorite language interpreter's source code ... interpreters are easier to comprehend than compilers, since you can 'follow along' with the flow of execution in the main interpreter loop just like you're executing a program ... e.g., creating stack frames, allocating heap memory, assigning variables, etc.

Squeak Smalltalk. For Java, if you can get hold of it, the old Acme Webserver. That was very clean code.
Post reply on HN