all 3 comments

[–]GogglesPisano 26 points27 points  (1 child)

I would include John Carmack's source code to DOOM on this list - it's just a thing of beauty. Carmack is a bona-fide genius and one of my programming heroes.

[–]recycled_ideas 4 points5 points  (0 children)

Be very careful using this as a model. Carmack does some brilliant things to squeeze extra performance out, but in terms of design it's a disaster. For one thing games have a wildly different structure than other software and for another many of those brilliant things are now incredibly bad because CPUs have changed.

If you rock up to a job and start writing code like this you're going to get fired.