Linked by Thom Holwerda on Fri 15th Feb 2013 10:40 UTC
General Development "Since I left my job at Amazon I have spent a lot of time reading great source code. Having exhausted the insanely good idSoftware pool, the next thing to read was one of the greatest game of all time: Duke Nukem 3D and the engine powering it named 'Build'. It turned out to be a difficult experience: The engine delivered great value and ranked high in terms of speed, stability and memory consumption but my enthousiasm met a source code controversial in terms of organization, best practices and comments/documentation. This reading session taught me a lot about code legacy and what helps a software live long." Hail to the king, baby.
Permalink for comment 552605
To read all comments associated with this story, please click here.
Code Review
by Alfman on Fri 15th Feb 2013 13:14 UTC
Alfman
Member since:
2011-01-28

"Note : If a file/variable name features a number: it is probably not a good name !"

Says who? Variables have used numbers for subscripts for as long as I can remember. Coordinates are aptly named x1,y1,z1, x2,y2,z2 ... Given their frequency in a graphics codebase I think it's far better than the alternatives I can think of.


Anyways articles like this always spike my interest, would have like more technical depth, but still neat to read about it.

If anyone were to ever review my code from 15 years ago, I'm sure that I'd get a lot of flak ;) Anyone heard of Advo Sched? No...oh well.

Reply Score: 3