Click here to Skip to main content
15,895,462 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: Real coding horror... by me! :) Pin
leppie12-Mar-08 6:14
leppie12-Mar-08 6:14 
GeneralRe: Real coding horror... by me! :) Pin
Justin Perez13-Mar-08 2:50
Justin Perez13-Mar-08 2:50 
GeneralRe: Real coding horror... by me! :) Pin
sammyamma12-Mar-08 11:06
sammyamma12-Mar-08 11:06 
GeneralRe: Real coding horror... by me! :) Pin
Pete O'Hanlon12-Mar-08 12:21
mvePete O'Hanlon12-Mar-08 12:21 
GeneralRe: Real coding horror... by me! :) Pin
Justin Perez13-Mar-08 2:51
Justin Perez13-Mar-08 2:51 
GeneralRe: Real coding horror... by me! :) Pin
NormDroid13-Mar-08 0:49
professionalNormDroid13-Mar-08 0:49 
GeneralWTF @ TheDailyWTF Pin
leppie11-Mar-08 5:54
leppie11-Mar-08 5:54 
GeneralRe: WTF @ TheDailyWTF Pin
Robert Surtees11-Mar-08 9:55
Robert Surtees11-Mar-08 9:55 
This reminds me of my first CS class back in the 70s. The professor gave us an assignment to parse free form numeric input strings. Any valid number was fair game, integers, floats, exponents, etc. We all shuffled off to the ribbonless keypunch machines to enter our creations (without the assistance of the interweb and ‘I needs codes now. Urgent’ forums). A week later we returned to class each with massive stacks of FORTRAN code and bruised egos as nobody was able to get it to work for all cases.

He then presented his solution using an FSA and a few lines of code. After the initial shock and urge to shove said deck of cards down the professors throat, it turned out to be a great lesson on the power of table driven programs.
GeneralRe: WTF @ TheDailyWTF Pin
Lutosław11-Mar-08 13:49
Lutosław11-Mar-08 13:49 
GeneralRe: WTF @ TheDailyWTF Pin
Paul Conrad12-Mar-08 5:23
professionalPaul Conrad12-Mar-08 5:23 
GeneralRe: WTF @ TheDailyWTF Pin
leppie12-Mar-08 6:06
leppie12-Mar-08 6:06 
GeneralRe: WTF @ TheDailyWTF Pin
jhwurmbach12-Mar-08 7:18
jhwurmbach12-Mar-08 7:18 
GeneralStudying informatics... PinPopular
Lutosław10-Mar-08 13:23
Lutosław10-Mar-08 13:23 
GeneralRe: Studying informatics... Pin
Paul Conrad10-Mar-08 16:45
professionalPaul Conrad10-Mar-08 16:45 
GeneralRe: Studying informatics... Pin
Himanshu Joshi10-Mar-08 18:40
Himanshu Joshi10-Mar-08 18:40 
GeneralRe: Studying informatics... Pin
Pete O'Hanlon10-Mar-08 23:25
mvePete O'Hanlon10-Mar-08 23:25 
GeneralRe: Studying informatics... Pin
Paul Conrad11-Mar-08 5:06
professionalPaul Conrad11-Mar-08 5:06 
GeneralRe: Studying informatics... Pin
Corinna John11-Mar-08 0:11
Corinna John11-Mar-08 0:11 
GeneralRe: Studying informatics... Pin
DevSolar11-Mar-08 0:29
DevSolar11-Mar-08 0:29 
GeneralRe: Studying informatics... Pin
Lutosław11-Mar-08 0:54
Lutosław11-Mar-08 0:54 
GeneralRe: Studying informatics... Pin
Tristan Rhodes11-Mar-08 2:34
Tristan Rhodes11-Mar-08 2:34 
GeneralRe: Studying informatics... Pin
Lutosław11-Mar-08 12:23
Lutosław11-Mar-08 12:23 
GeneralRe: Studying informatics... Pin
Megidolaon18-Jun-08 4:14
Megidolaon18-Jun-08 4:14 
JokeRe: Studying informatics... Pin
jhwurmbach12-Mar-08 7:20
jhwurmbach12-Mar-08 7:20 
GeneralRe: Studying informatics... Pin
Lutosław12-Mar-08 13:02
Lutosław12-Mar-08 13:02 

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.