Ask HN: What source code is worth studying?  
== Vim or Emacs ==<p>Just pick one and force yourself to use it to the exclusion of other editors.  Future you will thank you later, because you'll still be using it 20 years from now.  "We are typists first, programmers second" comes to mind.  You need to be able to move chunks of code around, substitute things with regexes, use marks, use editor macros, etc.<p>== 6.824: Distributed Systems ==<p><a href="http://pdos.csail.mit.edu/6.824-2013/" rel="nofollow">http://pdos.csail.mit.edu/6.824-2013/</a>  Do each lab.  Read the discussion and rtm's course notes.<p>== Tarsnap ==<p><a href="https://www.tarsnap.com/download.html" rel="nofollow">https://www.tarsnap.com/download.html</a> How to write C.  Study the "meta," that is, the choice of how the codebase is structured and the ruthless attention to detail.  Pay attention to how functions are commented, both in the body of the function and in the prototypes.  Use doxygen to help you navigate the codebase.  Bonus: that'll teach you how to use doxygen to navigate a codebase.<p>== xv6 ==<p><a href="http://pdos.csail.mit.edu/6.828/2012/xv6.html" rel="nofollow">http://pdos.csail.mit.edu/6.828/2012/xv6.html</a><p><a href="http://pdos.csail.mit.edu/6.828/2012/xv6/xv6-rev7.pdf" rel="nofollow">http://pdos.csail.mit.edu/6.828/2012/xv6/xv6-rev7.pdf</a><p><a href="http://pdos.csail.mit.edu/6.828/2012/xv6/book-rev7.pdf" rel="nofollow">http://pdos.csail.mit.edu/6.828/2012/xv6/book-rev7.pdf</a><p>Read the book.  Force yourself to read it in its entirety.  Use the source code PDF to study how to turn theory into practice.<p>== Arc ==<p><a href="http://ycombinator.com/arc/arc3.1.tar" rel="nofollow">http://ycombinator.com/arc/arc3.1.tar</a><p>You're not studying Arc to learn Arc.  You're studying Arc to learn how to implement Arc.  You'll learn the power of anaphoric macros.  You'll learn the innards of Racket.<p>Questions to ask yourself:  Why did Racket as a platform make it easier to implement Arc than, say, C/Golang/Ruby/Python?  Now pick one of those and ask yourself: what would be required in order to implement Arc on that platform?  For example, if you say "C," a partial answer would be "I'd have to write my own garbage collector," whereas for Golang or Lua that wouldn't be the case.<p>The enlightenment experience you want out of this self-study is realizing that it's very difficult to express the ideas embodied in the Arc codebase any more succinctly without sacrificing its power and flexibility.<p>Now implement the four 6.824 labs in Arc.  No, I'm not kidding.  I've done it.  It won't take you very long at this point.  You'll need to read the RPC section of Golang's standard library and understand how it works, then port those ideas to Arc.  Don't worry about making it nice; just make it work.  Port the lab's unit tests to Arc, then ensure your Arc version passes those tests.  The performance is actually not too bad: the Arc version runs only a few times slower than the Golang version if I remember correctly.<p>== Matasano crypto challenges ==<p><a href="http://www.matasano.com/articles/crypto-challenges/" rel="nofollow">http://www.matasano.com/articles/crypto-challenges/</a>  Just trust me on this one.  They're cool and fun and funny.  If you've ever wanted to figure out how to steal encrypted song lyrics from the 70's, look no further.<p>== Misc ==<p>(This isn't programming, just useful or interesting.)<p>Statistics Done Wrong <a href="http://www.statisticsdonewrong.com/" rel="nofollow">http://www.statisticsdonewrong.com/</a><p>A Mathematician's Apology <a href="http://www.math.ualberta.ca/mss/misc/A%20Mathematician's%20Apology.pdf" rel="nofollow">http://www.math.ualberta.ca/mss/misc/A%20Mathematician's%20A...</a><p>Surely You're Joking, Mr. Feynman <a href="http://web.archive.org/web/20050830091901/http://www.gorgorat.com" rel="nofollow">http://web.archive.org/web/20050830091901/http://www.gorgora...</a><p>Zen and the Art of Motorcycle Maintenance <a href="http://www.arvindguptatoys.com/arvindgupta/zen-motorcycle.pdf" rel="nofollow">http://www.arvindguptatoys.com/arvindgupta/zen-motorcycle.pd...</a><p>== Above All ==<p>Don't fall in love with studying theory.  Practice.  Do what you want; do what interests you.  Find new things that interest you.  Push yourself.  Do not identify yourself as "an X programmer," or as anything else.  Don't get caught up in debates about what's better; instead explore what's possible.