Click here to Skip to main content
15,905,148 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: 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 
Here is my version :->

private bool AskForSureBox(string Message)<br />
{<br />
    return MessageBox.Show(Message, "Are you sure?", MessageBoxButtons.YesNo) == DialogResult.Yes;<br />
}


I just couldn't see passing Title as a parameter, and it is nice that there is no decisions to branch on. Clean execution path of this code Big Grin | :-D



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 
GeneralRe: Strong Typing Pin
CPallini4-May-07 5:12
mveCPallini4-May-07 5:12 
GeneralRe: Strong Typing Pin
Tristan Rhodes4-May-07 5:37
Tristan Rhodes4-May-07 5:37 
GeneralRe: Strong Typing Pin
CPallini4-May-07 5:46
mveCPallini4-May-07 5:46 
GeneralRe: Strong Typing Pin
Tristan Rhodes4-May-07 5:56
Tristan Rhodes4-May-07 5:56 
AnswerRe: Strong Typing Pin
CPallini4-May-07 22:39
mveCPallini4-May-07 22:39 
JokeRe: Strong Typing Pin
Tom Welch4-May-07 6:24
Tom Welch4-May-07 6:24 
JokeRe: Strong Typing Pin
Marcus J. Smith4-May-07 7:59
professionalMarcus J. Smith4-May-07 7:59 
GeneralRe: Strong Typing Pin
Paul Conrad5-May-07 5:29
professionalPaul Conrad5-May-07 5:29 
JokeRe: Strong Typing Pin
Pete O'Hanlon4-May-07 9:53
mvePete O'Hanlon4-May-07 9:53 
JokeRe: Strong Typing [modified] Pin
Marcus J. Smith4-May-07 10:45
professionalMarcus J. Smith4-May-07 10:45 
GeneralRe: Strong Typing Pin
John R. Shaw6-May-07 1:12
John R. Shaw6-May-07 1:12 
GeneralRe: Strong Typing Pin
Pete O'Hanlon7-May-07 22:36
mvePete O'Hanlon7-May-07 22:36 
GeneralRe: Strong Typing Pin
PIEBALDconsult4-May-07 17:04
mvePIEBALDconsult4-May-07 17:04 
GeneralRe: Strong Typing Pin
John R. Shaw6-May-07 1:21
John R. Shaw6-May-07 1:21 

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.