View Single Post
  #88   Spotlight this post!  
Unread 24-11-2007, 13:08
Schooj's Avatar
Schooj Schooj is offline
Registered User
FRC #0665 (MAYHEM)
Team Role: College Student
 
Join Date: Nov 2007
Rookie Year: 2003
Location: Orlando, Fl
Posts: 3
Schooj is an unknown quantity at this point
Re: Programming jokes

Its java, but I couldn't resist adding my favorite function
public int getRandom(int range){
return 4;
}

Back in 2005, during Triple Play, our head programmer was supposed to make a code for the bot to move for a second or two then stop. So we load the code into the bot at the last minute and put it on the field in one of the outer positions. The second the match starts, the robot speeds away across the field. Luckily, the robot's drivetrain was poorly constructed, so it arced away from ramming the opponent at full speed and instead hit one of the corner goals so hard, it knocked off the hanging tetra, scoring points for the opposing alliance! Long story short, infinite loops are bad.
__________________
"I reject your reality and substitute my own." -Mythbusters