Click here to Skip to main content
15,895,084 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
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 
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 
In this semester I've got a new subject: "Object-oriented programming".

* We learn how to bypass Visual C++ 6.0 compiler bugs (yes we use it).
* To show good OOP practices, we are told that a Student class should contain a non-static Write method which does not take any arguments. This method should write content of all Student objects from an array (stored as a global variable) to a file with a hard-coded name "student.bz" in a very plain text format.
* All class names must definitely begin with 'C' and structures with 'T'.
* Public members like 'fil' (FileName), 'st' (Student) or 'c' (Count) are perfectly o.k. and there is no need to comment them anywhere.
* Finally, our knowledge is tested by writing a code snippet on a sheet of paper. You missed a semicolon or an #include directive -- sorry you fail.

Sweet.

Greetings - Gajatko

Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

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 
GeneralThe Useful DLL Pin
VentsyV10-Mar-08 7:32
VentsyV10-Mar-08 7:32 
GeneralRe: The Useful DLL Pin
Pete O'Hanlon10-Mar-08 12:24
mvePete O'Hanlon10-Mar-08 12:24 
GeneralRe: The Useful DLL Pin
VentsyV11-Mar-08 8:20
VentsyV11-Mar-08 8:20 
GeneralRe: The Useful DLL Pin
Pete O'Hanlon11-Mar-08 11:52
mvePete O'Hanlon11-Mar-08 11:52 
GeneralRe: The Useful DLL Pin
leppie12-Mar-08 6:13
leppie12-Mar-08 6:13 

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.