Click here to Skip to main content
15,914,221 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: userid=="administrator" Pin
Tadas Budvytis29-May-08 8:10
Tadas Budvytis29-May-08 8:10 
GeneralRe: userid=="administrator" Pin
Robert Royall29-May-08 9:28
Robert Royall29-May-08 9:28 
GeneralRe: userid=="administrator" Pin
Mladen Janković29-May-08 10:01
Mladen Janković29-May-08 10:01 
GeneralRe: userid=="administrator" Pin
Robert Royall29-May-08 11:46
Robert Royall29-May-08 11:46 
GeneralRe: userid=="administrator" Pin
Brady Kelly31-May-08 5:09
Brady Kelly31-May-08 5:09 
GeneralRe: userid=="administrator" Pin
MarkB77730-May-08 23:30
MarkB77730-May-08 23:30 
GeneralRe: userid=="administrator" Pin
PIEBALDconsult31-May-08 12:37
mvePIEBALDconsult31-May-08 12:37 
GeneralRe: userid=="administrator" Pin
CDP18022-Jun-08 0:09
CDP18022-Jun-08 0:09 
I had the same objection to this while going through some code with the boss many years ago. I always checked for null separately before doing anything else. He did it just the same way like in the code here. He argued that the check for null values is always done first and does not run into the second term if the value is indeed null.

This may not be sound proof, but the entire code was full of this and we never had any problems because of that.

A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.

I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

GeneralRe: userid=="administrator" Pin
Brady Kelly31-May-08 5:08
Brady Kelly31-May-08 5:08 
GeneralRe: userid=="administrator" [modified] Pin
Oshtri Deka1-Jun-08 22:24
professionalOshtri Deka1-Jun-08 22:24 
GeneralTrimming off a little too much? Pin
bigbrownbeaver29-May-08 0:02
bigbrownbeaver29-May-08 0:02 
GeneralRe: Trimming off a little too much? Pin
ChandraRam29-May-08 0:40
ChandraRam29-May-08 0:40 
GeneralRe: Trimming off a little too much? Pin
PIEBALDconsult31-May-08 17:35
mvePIEBALDconsult31-May-08 17:35 
GeneralRe: Trimming off a little too much? Pin
CDP18022-Jun-08 0:14
CDP18022-Jun-08 0:14 
JokeRe: Trimming off a little too much? Pin
PIEBALDconsult2-Jun-08 12:51
mvePIEBALDconsult2-Jun-08 12:51 
JokeRe: Trimming off a little too much? Pin
chmod222223-Jun-08 1:54
chmod222223-Jun-08 1:54 
GeneralFormwhat? Pin
Brady Kelly28-May-08 8:33
Brady Kelly28-May-08 8:33 
JokeRe: Formwhat? Pin
Ri Qen-Sin28-May-08 18:16
Ri Qen-Sin28-May-08 18:16 
GeneralObfuscation? Depends how you call it... Pin
Jeff Dickey28-May-08 21:33
Jeff Dickey28-May-08 21:33 
GeneralRe: Obfuscation? Depends how you call it... Pin
Graham Bradshaw29-May-08 4:53
Graham Bradshaw29-May-08 4:53 
RantRe: Obfuscation? Depends how you call it... Pin
Jeff Dickey29-May-08 17:17
Jeff Dickey29-May-08 17:17 
JokeRe: Obfuscation? Depends how you call it... Pin
chmod222218-Sep-08 10:50
chmod222218-Sep-08 10:50 
GeneralRe: Formwhat? Pin
leppie28-May-08 21:02
leppie28-May-08 21:02 
GeneralRe: Formwhat? Pin
Brady Kelly28-May-08 22:45
Brady Kelly28-May-08 22:45 
GeneralRe: Formwhat? Pin
#realJSOP29-May-08 2:55
professional#realJSOP29-May-08 2:55 

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.