Click here to Skip to main content
15,564,092 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: CSS selector of the day Pin
Sentenryu3-Oct-12 2:11
Sentenryu3-Oct-12 2:11 
GeneralRe: CSS selector of the day Pin
Yvan Rodrigues3-Oct-12 4:55
professionalYvan Rodrigues3-Oct-12 4:55 
GeneralRe: CSS selector of the day Pin
jayson lorenzen3-Oct-12 6:03
jayson lorenzen3-Oct-12 6:03 
GeneralRe: CSS selector of the day Pin
César de Souza3-Oct-12 6:13
professionalCésar de Souza3-Oct-12 6:13 
GeneralRe: CSS selector of the day Pin
Chris Maunder3-Oct-12 9:20
cofounderChris Maunder3-Oct-12 9:20 
GeneralRe: CSS selector of the day Pin
jsc4211-Oct-12 1:43
professionaljsc4211-Oct-12 1:43 
GeneralRe: CSS selector of the day Pin
Chris Maunder11-Oct-12 5:34
cofounderChris Maunder11-Oct-12 5:34 
GeneralCoded insults PinPopular
dojohansen28-Sep-12 5:14
dojohansen28-Sep-12 5:14 
From the main form of a simple XSD validator app..

C#
void executeButton_click(object sender, EventArgs e)
{
    if (userTooStupid(schema == null, "You gotta load an XSD first, genius.") ||
        userTooStupid(fileBrowser1.SelectedFiles.Length == 0, "You've selected zero files. And they're all valid!!"))
        return;


C#
bool userTooStupid(bool condition, string insult)
{
    if (condition)
        MessageBox.Show(insult, "User Too Stupid");
    return condition;
}

GeneralRe: Coded insults Pin
Mike Winiberg30-Sep-12 21:29
professionalMike Winiberg30-Sep-12 21:29 
AnswerRe: Coded insults Pin
Marco Bertschi30-Sep-12 22:07
professionalMarco Bertschi30-Sep-12 22:07 
GeneralRe: Coded insults Pin
Mike Winiberg30-Sep-12 22:16
professionalMike Winiberg30-Sep-12 22:16 
GeneralRe: Coded insults Pin
Eddy Vluggen3-Oct-12 3:33
professionalEddy Vluggen3-Oct-12 3:33 
GeneralRe: Coded insults Pin
Marco Bertschi10-Oct-12 3:09
professionalMarco Bertschi10-Oct-12 3:09 
GeneralRe: Coded insults Pin
krubach21-Oct-12 1:42
krubach21-Oct-12 1:42 
GeneralRe: Coded insults Pin
Bob10003-Oct-12 6:56
professionalBob10003-Oct-12 6:56 
GeneralRe: Coded insults Pin
JohnLBevan30-Sep-12 23:46
professionalJohnLBevan30-Sep-12 23:46 
GeneralRe: Coded insults Pin
Timothy J Sygitowicz1-Oct-12 6:10
Timothy J Sygitowicz1-Oct-12 6:10 
GeneralRe: Coded insults Pin
VallarasuS1-Oct-12 6:55
VallarasuS1-Oct-12 6:55 
GeneralRe: Coded insults Pin
patbob1-Oct-12 6:27
patbob1-Oct-12 6:27 
GeneralRe: Coded insults Pin
BobJanova1-Oct-12 7:06
BobJanova1-Oct-12 7:06 
GeneralRe: Coded insults Pin
erzengel.des.lichtes1-Oct-12 7:58
erzengel.des.lichtes1-Oct-12 7:58 
GeneralRe: Coded insults Pin
BobJanova2-Oct-12 1:02
BobJanova2-Oct-12 1:02 
GeneralRe: Coded insults Pin
Stefan_Lang2-Oct-12 5:30
mveStefan_Lang2-Oct-12 5:30 
GeneralRe: Coded insults Pin
emajyn1-Oct-12 7:25
emajyn1-Oct-12 7:25 
GeneralRe: Coded insults Pin
patbob1-Oct-12 8:02
patbob1-Oct-12 8: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.