View Single Post
  #7   Spotlight this post!  
Unread 05-02-2006, 11:14
Donut Donut is online now
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,287
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Stupidest Programming Mistakes

This is easily the worst mistake made this year.

Code:
Else (current_state == enabled && last_state == disabled)
It took us 3 hours of staring at it to realise you can't put conditions on an else.