Lurker News
This is one my favourite questions, asked by idlewords: https://news.ycombinator.com/item?id=879101 But its been a long time since then, and with a new set of programming languages, I believe there are new code bases that's worth studying about and learning from. So, which code-base should I be reading about to improve myself?

Comments (166) 76 threads

Earlier comments
kungfooey#
Yes! I couldn't agree more on this one. Such a beautifully written library.
3pt14159#
I dunno man, the SQLAlchemy expression interface is pretty hard to work with and the documentation isn't all that great either.
projectileboy1 reply#
I'd echo the advice to read the Arc source, and I'd add the various versions of Quake (C, C++). I learned a lot reading John Carmack's code.
alanning#
Quake 1 and 2 source code was excellent to go through. I'd imagine the Quake 3 Arena source would also be great but haven't done that yet.
pincubator1 reply#
Also can someone suggest what is the best way to approach code reading? When I open a library in Python, I am not sure where to start reading, just a bunch of files. Should I randomly pick one file and start reading from there? Is there any common strategy?
gaustin#
I don't get much out of simply reading code. I have to get my hands in there and see how it works.

I load it into a repl and play around. See how changing little things effects tests. I add print statements to give a narrative. I draw diagrams of the code flow, especially startup, shutdown and sometimes error/exception handling.

Load more comments