Click here to Skip to main content
15,905,144 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: c++ constructor Pin
Kochise10-May-07 2:24
Kochise10-May-07 2:24 
GeneralRe: c++ constructor Pin
Rick York10-May-07 20:23
mveRick York10-May-07 20:23 
GeneralRe: c++ constructor Pin
Kochise10-May-07 21:46
Kochise10-May-07 21:46 
GeneralRe: c++ constructor Pin
XTAL25611-May-07 2:11
XTAL25611-May-07 2:11 
GeneralRe: c++ constructor Pin
Rick York11-May-07 14:39
mveRick York11-May-07 14:39 
GeneralRe: c++ constructor Pin
Paul Conrad13-May-07 9:19
professionalPaul Conrad13-May-07 9:19 
GeneralRe: c++ constructor Pin
Kochise13-May-07 21:03
Kochise13-May-07 21:03 
GeneralWhy do some people code at all? Pin
Optimus Chaos9-May-07 21:08
Optimus Chaos9-May-07 21:08 
Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code:

<br />
<br />
public bool AskForSureBox(string Message, string Title)<br />
{<br />
   MessageBox.Show(Message, Title, MessageBoxButtons.YesNo);<br />
   if (DialogResult.Yes.ToString() == "Yes")<br />
       return true;<br />
   else<br />
      return false;<br />
}<br />
<br />


I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company...

Until today I didn't get an answer.

Have fun coding!
GeneralRe: Why do some people code at all? Pin
BadKarma10-May-07 1:35
BadKarma10-May-07 1:35 
GeneralRe: Why do some people code at all? Pin
Dan Neely10-May-07 2:09
Dan Neely10-May-07 2:09 
GeneralRe: Why do some people code at all? Pin
Dave Kreskowiak10-May-07 3:48
mveDave Kreskowiak10-May-07 3:48 
JokeRe: Why do some people code at all? Pin
Pete O'Hanlon10-May-07 3:53
mvePete O'Hanlon10-May-07 3:53 
GeneralRe: Why do some people code at all? Pin
ScottM110-May-07 4:07
ScottM110-May-07 4:07 
GeneralRe: Why do some people code at all? Pin
Mike Hankey10-May-07 15:10
mveMike Hankey10-May-07 15:10 
GeneralRe: Why do some people code at all? Pin
Kochise10-May-07 4:44
Kochise10-May-07 4:44 
GeneralRe: Why do some people code at all? Pin
PIEBALDconsult10-May-07 8:29
mvePIEBALDconsult10-May-07 8:29 
GeneralRe: Why do some people code at all? Pin
Mike Hankey10-May-07 15:13
mveMike Hankey10-May-07 15:13 
GeneralRe: Why do some people code at all? Pin
BAIJUMAX10-May-07 19:40
professionalBAIJUMAX10-May-07 19:40 
GeneralRe: Why do some people code at all? Pin
Vikram A Punathambekar10-May-07 20:21
Vikram A Punathambekar10-May-07 20:21 
GeneralRe: Why do some people code at all? Pin
BAIJUMAX10-May-07 21:34
professionalBAIJUMAX10-May-07 21:34 
GeneralRe: Why do some people code at all? Pin
Russell Jones11-May-07 2:21
Russell Jones11-May-07 2:21 
GeneralRe: Why do some people code at all? Pin
Paul Conrad13-May-07 9:30
professionalPaul Conrad13-May-07 9:30 
GeneralRe: Why do some people code at all? Pin
Sylvester george20-Jun-07 3:05
Sylvester george20-Jun-07 3:05 
GeneralStrong Typing Pin
Tristan Rhodes4-May-07 4:46
Tristan Rhodes4-May-07 4:46 
GeneralRe: Strong Typing Pin
Marcus J. Smith4-May-07 5:06
professionalMarcus J. Smith4-May-07 5:06 

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.