Click here to Skip to main content
15,908,776 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: I hate outsourcing... Pin
Gary Huck3-Jul-12 2:34
Gary Huck3-Jul-12 2:34 
GeneralRe: I hate outsourcing... Pin
PIEBALDconsult3-Jul-12 3:29
mvePIEBALDconsult3-Jul-12 3:29 
GeneralRe: I hate outsourcing... Pin
Bernhard Hiller3-Jul-12 20:25
Bernhard Hiller3-Jul-12 20:25 
GeneralRe: I hate outsourcing... Pin
Rhys Gravell3-Jul-12 20:28
professionalRhys Gravell3-Jul-12 20:28 
GeneralThis probably falls into the 'weird' category Pin
CDP18021-Jul-12 22:57
CDP18021-Jul-12 22:57 
GeneralRe: This probably falls into the 'weird' category Pin
User 24844372-Jul-12 19:22
User 24844372-Jul-12 19:22 
GeneralRe: This probably falls into the 'weird' category Pin
Yehuda Katz3-Jul-12 7:19
Yehuda Katz3-Jul-12 7:19 
GeneralRe: This probably falls into the 'weird' category Pin
CDP18023-Jul-12 10:41
CDP18023-Jul-12 10:41 
Hey, you can read his twisted mind! Would you please come over and help me with making sense of the rest of this mess?

You are right. He tries to tell us that the application directory is not there. The program runs on a mobile device and tries to get the latest version of itself when the device is docked. My friend here just could not figure out how a program that is currently running can update itself. Now, how can it possibly happen that the application directory is not there when the application itself is obviously running at that moment? He is trying to prevent an impossible error.

He is like the coyote when he builds another roadrunner trap. Everybody but him can see how it is going to end. And when it explodes in his face, he can't figure out why. Instead he simply wraps the problematic code in a 'try' and leaves the catch block empty. Nothing has happened, let's just go on with it. This time he at least tried to show some error message, but of course not without making a mess out of that simple task.

I have written it before: Tar him, feather him, throw him out of the guild and then chase him out of town.
At least artificial intelligence already is superior to natural stupidity



GeneralJust a C++ tutorial PinPopular
AndreFratelli1-Jul-12 7:34
AndreFratelli1-Jul-12 7:34 
GeneralRe: Just a C++ tutorial Pin
Kevin Drzycimski1-Jul-12 20:15
Kevin Drzycimski1-Jul-12 20:15 
GeneralRe: Just a C++ tutorial PinPopular
OriginalGriff1-Jul-12 21:14
mveOriginalGriff1-Jul-12 21:14 
GeneralRe: Just a C++ tutorial Pin
Peter_in_27801-Jul-12 21:30
professionalPeter_in_27801-Jul-12 21:30 
GeneralRe: Just a C++ tutorial Pin
OriginalGriff1-Jul-12 21:36
mveOriginalGriff1-Jul-12 21:36 
GeneralRe: Just a C++ tutorial Pin
Kevin Drzycimski2-Jul-12 1:28
Kevin Drzycimski2-Jul-12 1:28 
GeneralRe: Just a C++ tutorial Pin
OriginalGriff2-Jul-12 3:39
mveOriginalGriff2-Jul-12 3:39 
GeneralRe: Just a C++ tutorial Pin
Andy Bantly3-Jul-12 4:33
Andy Bantly3-Jul-12 4:33 
GeneralRe: Just a C++ tutorial Pin
Mike Winiberg2-Jul-12 21:00
professionalMike Winiberg2-Jul-12 21:00 
GeneralMessage Closed Pin
3-Jul-12 14:18
professionalCésar de Souza3-Jul-12 14:18 
GeneralRe: Just a C++ tutorial Pin
AndreFratelli3-Jul-12 14:23
AndreFratelli3-Jul-12 14:23 
GeneralRe: Just a C++ tutorial Pin
César de Souza3-Jul-12 14:26
professionalCésar de Souza3-Jul-12 14:26 
GeneralRe: Just a C++ tutorial Pin
Vladimir Svyatski10-Jul-12 8:32
professionalVladimir Svyatski10-Jul-12 8:32 
GeneralSmall & Usefull.. Pin
_Amy30-Jun-12 9:55
professional_Amy30-Jun-12 9:55 
GeneralImma Switch, Imma Switch, Imma Imma Imma Switch Pin
AspDotNetDev27-Jun-12 15:31
protectorAspDotNetDev27-Jun-12 15:31 
GeneralRe: Imma Switch, Imma Switch, Imma Imma Imma Switch Pin
Brisingr Aerowing27-Jun-12 16:07
professionalBrisingr Aerowing27-Jun-12 16:07 
GeneralIs it? Has it changed? What about now? Pin
Arthur F Souza26-Jun-12 9:01
Arthur F Souza26-Jun-12 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.