Click here to Skip to main content
15,892,005 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: Size Matters Pin
RugbyLeague27-May-10 2:49
RugbyLeague27-May-10 2:49 
GeneralRe: Size Matters Pin
Lutosław27-May-10 3:02
Lutosław27-May-10 3:02 
GeneralRe: Size Matters Pin
Lutosław27-May-10 10:10
Lutosław27-May-10 10:10 
GeneralRe: Size Matters Pin
Yusuf2-Jun-10 7:10
Yusuf2-Jun-10 7:10 
GeneralOne Too Many Pin
AspDotNetDev25-May-10 9:54
protectorAspDotNetDev25-May-10 9:54 
GeneralRe: a two too few Pin
Luc Pattyn25-May-10 11:03
sitebuilderLuc Pattyn25-May-10 11:03 
GeneralGo to Hell Pin
Kunal Chowdhury «IN»24-May-10 3:03
professionalKunal Chowdhury «IN»24-May-10 3:03 
GeneralRe: Go to Hell Pin
ARopo24-May-10 5:01
ARopo24-May-10 5:01 
Does that compile? or should it be public bool IsMatched(string str).

If it is a bool then this function does the same as if (str=="Customer") maybe they wanted to write
public bool IsCustomer(string str) 
{
  return (str=="Customer");
}

AnswerRe: Go to Hell Pin
Kunal Chowdhury «IN»24-May-10 5:30
professionalKunal Chowdhury «IN»24-May-10 5:30 
GeneralRe: Go to Hell Pin
ARopo24-May-10 5:36
ARopo24-May-10 5:36 
GeneralRe: Go to Hell Pin
AspDotNetDev25-May-10 9:39
protectorAspDotNetDev25-May-10 9:39 
GeneralRe: Go to Hell Pin
Jammer26-May-10 1:32
Jammer26-May-10 1:32 
GeneralRe: Go to Hell Pin
Khaniya25-May-10 18:41
professionalKhaniya25-May-10 18:41 
GeneralRe: Go to Hell Pin
icestatue26-May-10 3:18
icestatue26-May-10 3:18 
GeneralRe: Go to Hell Pin
Hired Mind13-Jul-10 10:42
Hired Mind13-Jul-10 10:42 
GeneralRe: Go to Hell Pin
icestatue15-Jul-10 14:43
icestatue15-Jul-10 14:43 
GeneralA function that does... nothing... :-). Pin
MarkB77723-May-10 20:31
MarkB77723-May-10 20:31 
QuestionRe: A function that does... nothing... :-). Pin
Stanciu Vlad23-May-10 21:54
Stanciu Vlad23-May-10 21:54 
AnswerRe: A function that does... nothing... :-). Pin
MarkB77723-May-10 22:14
MarkB77723-May-10 22:14 
GeneralRe: A function that does... nothing... :-). Pin
Peter_in_278024-May-10 1:12
professionalPeter_in_278024-May-10 1:12 
JokeRe: A function that does... nothing... :-). Pin
Niklas L24-May-10 23:29
Niklas L24-May-10 23:29 
GeneralRe: A function that does... nothing... :-). Pin
cpkilekofp4-Jun-10 10:59
cpkilekofp4-Jun-10 10:59 
GeneralRe: A function that does... nothing... :-). Pin
Jeroen De Dauw23-May-10 22:23
Jeroen De Dauw23-May-10 22:23 
GeneralRe: A function that does... nothing... :-). Pin
Chris Boden24-May-10 3:39
Chris Boden24-May-10 3:39 
GeneralRe: A function that does... nothing... :-). Pin
OriginalGriff23-May-10 23:31
mveOriginalGriff23-May-10 23:31 

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.