I realized recently that it's been a long time since I looked at anyone else's code outside of the context of debugging or working on it for hire. In your opinion, what are some examples of particularly well-designed or implemented software projects worth looking at to broaden one's own horizons as a programmer?
Ask HN: What source code is worth studying?
1–10 of 117 posts
Re: Ask HN: What source code is worth studying?
#2SQLite's source listing is great. I learned a lot about good C practices and documentation reading it.
Re: Ask HN: What source code is worth studying?
#3If you're interested in literate programming: TeX
Re: Ask HN: What source code is worth studying?
#4Anyone willing to recommend a Java project worth studying?
Re: Ask HN: What source code is worth studying?
#5I highly recommend both Paul Graham's source code for Arc (http://ycombinator.com/arc/arc3.tar), as well as the source code for Quake and Quake II (http://www.idsoftware.com/business/techdownloads/).
Re: Ask HN: What source code is worth studying?
#6This is half answer/half tangent, but I like http://www.google.com/codesearch a lot for browsing and reading code. A fun thing to do is to look at how others implement something you want to implement, or use some library you want to use. You end up finding a lot of different ways of doing the same thing, and if you find something that you want to explore more, it's easy to browse around.
Re: Ask HN: What source code is worth studying?
#7The Linux kernel: http://miller.cs.wm.edu/
Re: Ask HN: What source code is worth studying?
#8I highly recommend the Stanford GraphBase, written by Donald Knuth. It's C code written by Knuth using the literate programming tool CWEB. If you don't know about CWEB, it's not hard to learn how to use, and probably is already installed on your system if you have TeX. The Stanford GraphBase is available for free download on Knuth's web-site, and also comes bound in a nice paperback book, that was reprinted in 2009. Knuth also makes available many other programs written using CWEB on his web-site, but I would start with the GraphBase.
Re: Ask HN: What source code is worth studying?
#9Anyone willing to recommend a Java project worth studying?
Re: Ask HN: What source code is worth studying?
#10Django's code is well written, and very well documented.