Click here to Skip to main content
15,890,438 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: Let's just make sure? Pin
Timothy Byrd24-Dec-09 8:38
Timothy Byrd24-Dec-09 8:38 
GeneralRe: Let's just make sure? Pin
TobiasP31-Dec-09 1:13
TobiasP31-Dec-09 1:13 
GeneralRe: Let's just make sure? Pin
dojohansen7-Jan-10 22:06
dojohansen7-Jan-10 22:06 
General\r\n Pin
jofli2-Dec-09 23:20
jofli2-Dec-09 23:20 
GeneralRe: \r\n Pin
Thomas Weller3-Dec-09 3:40
Thomas Weller3-Dec-09 3:40 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 4:14
Ian Shlasko3-Dec-09 4:14 
GeneralRe: \r\n Pin
dan!sh 3-Dec-09 5:02
professional dan!sh 3-Dec-09 5:02 
GeneralRe: \r\n PinPopular
Ian Shlasko3-Dec-09 5:28
Ian Shlasko3-Dec-09 5:28 
If that's obfuscation, I'm not impressed... If I wanted to make it REALLY confusing, I'd do something like this:
const string blarphnik = "51209576120381929170992";
string elkabong = Convert.ToChar(int.Parse(blarphnik.SubString(1,2)) 
+ int.Parse(blarphnik /* If I had a pet monkey, I'd name it blarphnik */.SubString(8 /* What a nice number */,1))) 
+ Convert.ToChar(int.Parse(blarphnik.SubString(18, 2)) 
/ int.Parse(blarphnik.SubString(6,1) /* Todo: Fix this */));

And then I would publish this as part of a self-help book entitled "How to Drive a Programmer Insane"

Proud to have finally moved to the A-Ark. Which one are you in?
Author of Guardians of Xen (Sci-Fi/Fantasy novel)

GeneralRe: \r\n Pin
PIEBALDconsult3-Dec-09 5:33
mvePIEBALDconsult3-Dec-09 5:33 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 5:43
Ian Shlasko3-Dec-09 5:43 
GeneralRe: \r\n Pin
PIEBALDconsult4-Dec-09 3:41
mvePIEBALDconsult4-Dec-09 3:41 
GeneralRe: \r\n Pin
Ian Shlasko4-Dec-09 4:52
Ian Shlasko4-Dec-09 4:52 
GeneralRe: \r\n Pin
NormDroid7-Dec-09 2:38
professionalNormDroid7-Dec-09 2:38 
GeneralRe: \r\n Pin
dan!sh 3-Dec-09 6:09
professional dan!sh 3-Dec-09 6:09 
GeneralRe: \r\n Pin
OriginalGriff3-Dec-09 6:14
mveOriginalGriff3-Dec-09 6:14 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 6:20
Ian Shlasko3-Dec-09 6:20 
GeneralRe: \r\n Pin
peterchen11-Dec-09 2:48
peterchen11-Dec-09 2:48 
GeneralRe: \r\n Pin
Ian Shlasko11-Dec-09 2:55
Ian Shlasko11-Dec-09 2:55 
GeneralRe: \r\n Pin
Luc Pattyn11-Dec-09 3:57
sitebuilderLuc Pattyn11-Dec-09 3:57 
GeneralRe: \r\n Pin
PIEBALDconsult3-Dec-09 5:28
mvePIEBALDconsult3-Dec-09 5:28 
GeneralRe: \r\n Pin
Luc Pattyn3-Dec-09 5:49
sitebuilderLuc Pattyn3-Dec-09 5:49 
GeneralRe: \r\n Pin
jofli4-Dec-09 1:07
jofli4-Dec-09 1:07 
GeneralRe: \r\n Pin
David Skelly3-Dec-09 6:07
David Skelly3-Dec-09 6:07 
GeneralRe: \r\n Pin
David Skelly3-Dec-09 6:09
David Skelly3-Dec-09 6:09 
GeneralRe: \r\n Pin
harold aptroot3-Dec-09 6:22
harold aptroot3-Dec-09 6:22 

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.