Click here to Skip to main content
15,889,216 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: When the CEO becomes a developer IV Pin
OriginalGriff7-Nov-10 23:38
mveOriginalGriff7-Nov-10 23:38 
GeneralWhen the CEO becomes a developer III PinPopular
imagiro5-Nov-10 0:27
imagiro5-Nov-10 0:27 
GeneralRe: When the CEO becomes a developer III Pin
Jeroen De Dauw5-Nov-10 7:29
Jeroen De Dauw5-Nov-10 7:29 
GeneralRe: When the CEO becomes a developer III Pin
imagiro6-Nov-10 4:03
imagiro6-Nov-10 4:03 
GeneralRe: When the CEO becomes a developer III Pin
richard_k6-Nov-10 13:05
richard_k6-Nov-10 13:05 
GeneralRe: When the CEO becomes a developer III Pin
imagiro7-Nov-10 7:25
imagiro7-Nov-10 7:25 
GeneralWhen the CEO becomes a developer II PinPopular
imagiro3-Nov-10 22:16
imagiro3-Nov-10 22:16 
GeneralRe: When the CEO becomes a developer II Pin
CDP18024-Nov-10 4:23
CDP18024-Nov-10 4:23 
Yes, it can.

Garnish the whole thing with some empty catch blocks. Obfuscate these horrors with a generous helping of spaghetti (code). Use only obscure abreviations as names for variables. Avoid comments at all cost. Throw in some lengthy and totally needless string manipulation to avoid having to use any other data type. Let those string manipulations fail (sometimes) because the string was null to begin with, which omits about 10000 code lines by going directly to the empty catch block.

Or how about this: Send some query to get a filled dataset with several tables and many rows. Then clear out all the rows (but prevent them from being deleted in the database). This way you conveniently get a dataset to fill with your own new rows. No hassle with setting up the dataset first.

And I have this and many more great ideas in one big ball of rubbish. And the spaghetti parts are so good that any attempt to replace the most horrible parts one by one is doomed to fail.
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: When the CEO becomes a developer II Pin
GibbleCH4-Nov-10 4:56
GibbleCH4-Nov-10 4:56 
GeneralRe: When the CEO becomes a developer II Pin
imagiro4-Nov-10 6:31
imagiro4-Nov-10 6:31 
GeneralRe: When the CEO becomes a developer II PinPopular
PIEBALDconsult4-Nov-10 17:15
mvePIEBALDconsult4-Nov-10 17:15 
GeneralRe: When the CEO becomes a developer II PinPopular
Nagy Vilmos7-Nov-10 21:54
professionalNagy Vilmos7-Nov-10 21:54 
GeneralRe: When the CEO becomes a developer II Pin
Peter_in_27807-Nov-10 23:34
professionalPeter_in_27807-Nov-10 23:34 
GeneralRe: When the CEO becomes a developer II Pin
Charvak Karpe8-Nov-10 6:37
Charvak Karpe8-Nov-10 6:37 
GeneralRe: When the CEO becomes a developer II Pin
djdanlib8-Nov-10 6:53
djdanlib8-Nov-10 6:53 
GeneralRe: When the CEO becomes a developer II Pin
Dave Kreskowiak9-Nov-10 6:47
mveDave Kreskowiak9-Nov-10 6:47 
GeneralRe: When the CEO becomes a developer II Pin
Charvak Karpe9-Nov-10 6:56
Charvak Karpe9-Nov-10 6:56 
GeneralRe: When the CEO becomes a developer II Pin
Dave Kreskowiak9-Nov-10 13:02
mveDave Kreskowiak9-Nov-10 13:02 
GeneralRe: When the CEO becomes a developer II Pin
AspDotNetDev8-Nov-10 14:26
protectorAspDotNetDev8-Nov-10 14:26 
GeneralRe: When the CEO becomes a developer II Pin
Peter_in_27808-Nov-10 14:45
professionalPeter_in_27808-Nov-10 14:45 
GeneralRe: When the CEO becomes a developer II Pin
AspDotNetDev8-Nov-10 15:16
protectorAspDotNetDev8-Nov-10 15:16 
GeneralRe: When the CEO becomes a developer II Pin
Peter_in_27808-Nov-10 16:02
professionalPeter_in_27808-Nov-10 16:02 
GeneralRange-Checking (not) PinPopular
Rob Grainger3-Nov-10 5:27
Rob Grainger3-Nov-10 5:27 
GeneralRe: Range-Checking (not) Pin
AspDotNetDev3-Nov-10 6:45
protectorAspDotNetDev3-Nov-10 6:45 
GeneralRe: Range-Checking (not) Pin
Dalek Dave3-Nov-10 6:49
professionalDalek Dave3-Nov-10 6:49 

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.