Shadowcat on 27/3/2001 at 07:30
Quote:
How not to comment codeAfter I graduated from college, I went to Blue Sky Productions (currently Looking Glass Studios) and worked on this game, Ultima Underworld. My main programming task was writing all the AI code. It was kind of hairy, and there was this one hairy part in particular -- I think it was where all the monsters would get together while you were sleeping and vote on what they thought of you -- anyway, it had lots of special cases and weird logic, and after I had written it I couldn't put it behind me fast enough.
Six months later, I realize that I'm going to have to muck with this code. "Man," I say to myself, "I sure hope that I commented this code well when I originally wrote it." So, with trepidation, I open up the file and look at the function in question, and there is exactly one comment in it, at the very top, and it says:
<PRE>
/* HA HA HA */
</PRE>
-- from the files of Dan Schmidt: (
http://www.dfan.org/writing/comment.html) http://www.dfan.org/writing/comment.html
Dan's got some neat stuff here... go have a read; you'll enjoy it.
------------------
--
Shadowcat
One of Many
[This message has been edited by Shadowcat (edited March 27, 2001).]
twisty on 27/3/2001 at 15:08
That's a great link. Thanks Shadowcat. I found it interesting that he has absolute/perfect pitch. I also have this.
<HR width="75%">2 FM's in Progress -- <font color=purple>The Small Hours</font> and<font color=purple> Assylum</font>
Check out my first FM
<a href="http://twistalot.cjb.com/dromed.htm">The Ritual</a>
You can download it at <a href="http://www.3dactionplanet.com/thief/">The Underground</a>
and at <a href="http://www.thief-thecircle.com/missions/new/">The Circle</a> and also at <a href="http://thief.users1.50megs.com/">The Keep of Metal and Gold</a>