Software Scares
2007-01-03
Category: GeneralFor many years programmers have advocated using natural language words in their programs to make the software more readable. This is a good idea in general. The only real problem is that some programmers get a little odd. Their code takes on narrative qualities that aren?t necessarily intended for their customers.
Here?s an example:
public void Lawnmower() throws BunnyParts {
if( this.mentalState == "disturbed" ) {
throw new BunnyParts( "Die, bunny rabbits!" );
}
} // end method Lawnmower()
Comments (1)