The Dink Network

Reply to The importance of commenting your code

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 25th 2012, 11:41 PM
wizardg.gif
Paul
Peasant He/Him United States
 
It's not just so other people can make sense of it, although that's nice too, it's also in case you come back and try to read it yourself ten years later. Take this gem:
void main( void )
{
  if (&secret < 8)
    sp_active(&current_sprite, 0);
  if (&secret > 8)
    sp_active(&current_sprite, 11);
}