The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

errors by perldude2006-11-19 12:55:59
  Actually, exceptions are the shiznat. by Yohimbe 2002-06-11 12:53:22
Exceptions allow your code to flow, and have this clear section that explains that you know what you are doing and are taking steps to handle the slings and arrows of outrageous fortune. Or put better. Errors are a direct result of the bitter reality of stupid hardware, stupid users, stupid other things not in my direct control. (my) Code is (always) perfect (Heh) but must deal with Imperfect other pieces. Speaking in perl:
eval {
   #something that can break
}
if ($!) {
   print STDERR "Ohgod, the twit user hit the eject button!";
   deploy_chute();
   shoot_user();
}

[ Reply ]
    ooooh! by fore_deck2002-06-11 13:14:41
      Well, I asked my teacher... by IByte2002-06-11 15:35:39

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)