Click here to Skip to main content
15,890,512 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: \r\n PinPopular
Ian Shlasko3-Dec-09 5:28
Ian Shlasko3-Dec-09 5:28 
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 
Tcha! The youth and inexperience shows! Every real programmer knows that the best compression method is to use a random number generator with the correct seed to regenerate the uncompressed file - then all you need to do is send the seed. Extending this:
Random rs;
const string blarphnik = "51209576120381929170992";
int dontTouchThis = int.Parse(blarphnik.Substring(12,1));
rs = new Random(dontTouchThis);
StringBuilder sb = new StringBuilder(2);
sb.Append(Convert.ToChar(rs.Next(15)));
int dontTouchThisEither = int.Parse(blarphnik.Substring(10,1));
rs = new Random(dontTouchThisEither);
sb.Append(Convert.ToChar(rs.Next(15)));
string cBRK = sb.ToString();


No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

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 
GeneralRe: \r\n Pin
David Skelly3-Dec-09 22:45
David Skelly3-Dec-09 22:45 
GeneralRe: \r\n Pin
jofli3-Dec-09 23:37
jofli3-Dec-09 23:37 
GeneralRe: \r\n Pin
David Skelly4-Dec-09 0:13
David Skelly4-Dec-09 0:13 
GeneralRe: \r\n Pin
ClementsDan8-Dec-09 16:33
ClementsDan8-Dec-09 16:33 
GeneralRe: \r\n Pin
Gideon Engelberth8-Dec-09 17:49
Gideon Engelberth8-Dec-09 17:49 
GeneralRe: \r\n Pin
David Skelly4-Dec-09 4:26
David Skelly4-Dec-09 4:26 
JokeRe: \r\n Pin
TobiasP31-Dec-09 1:37
TobiasP31-Dec-09 1:37 

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.