bmoeller
Pre-takeoff checklist
Saw these awhile back on Stack overflow. If you've done any coding, you may enjoy these....
Finally....Posted on my office wall.
Code:
//
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 42
//
Code:
Exception up = new Exception("Something is really wrong.");
throw up; //ha ha
Code:
stop(); // Hammertime!
Code:
// I dedicate all this code, all my work, to my wife, Darlene, who will
// have to support me and our three children and the dog once it gets
// released into the public.
Code:
// somedev1 - 6/7/02 Adding temporary tracking of Login screen
// somedev2 - 5/22/07 Temporary my ass
Code:
//This code sucks, you know it and I know it.
//Move on and call me an idiot later.
Code:
try {
}
catch (SQLException ex) {
// Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
//If you thought you were screwed before, boy have I news for you!!!
}
Code:
//MailBody builders for two outgoing messages
StringBuilder hanz = new StringBuilder();
StringBuilder franz = new StringBuilder();
Finally....Posted on my office wall.