Click here to Skip to main content
15,890,845 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.

 
GeneralCan you top that? PinPopular
peterchen15-Feb-11 6:00
peterchen15-Feb-11 6:00 
GeneralRe: Can you top that? Pin
Vladimir Svyatski15-Feb-11 10:10
professionalVladimir Svyatski15-Feb-11 10:10 
GeneralRe: Can you top that? Pin
Single Step Debugger15-Feb-11 10:39
Single Step Debugger15-Feb-11 10:39 
GeneralRe: Can you top that? Pin
peterchen15-Feb-11 19:34
peterchen15-Feb-11 19:34 
JokeRe: Can you top that? Pin
musefan16-Feb-11 5:29
musefan16-Feb-11 5:29 
GeneralRe: Can you top that? Pin
fat_boy17-Feb-11 5:40
fat_boy17-Feb-11 5:40 
GeneralRe: Can you top that? Pin
peterchen17-Feb-11 6:33
peterchen17-Feb-11 6:33 
GeneralRe: Can you top that? Pin
CDP180218-Feb-11 0:29
CDP180218-Feb-11 0:29 
Top that? Easily. Here is just one of endlessly many similar static methods in an application I just replaced (including comments and documentation):

public static int DoSomethingWithBunnies(int auswahl, string artnr, string artbez, string lnam,
                                         string lnr, string lartnr, string wg, string mkenz, string ean,
                                         string gab, bool ges, bool bug, bool bau, bool eks, int stanort,
                                         string uid)
{
   // You don't want to see what comes here
}


Edit: It's not the number of parameters that's the problem here. Much worse that all methods are static, usually at least 1000 lines of the worst spaghetti code long and often redundant. There are at least two more versions of this particular method here with '2' and '3' added to the name with little to no apparent differences in the copied code. All without any comments except for those I added or any documentation.
"I have what could be described as the most wide-open sense of humor on the site, and if I don't think something is funny, then it really isn't." - JSOC, 2011
-----
"Friar Modest never was a prior" - Italian proverb



GeneralWonderful naming Pin
Vladimir Svyatski14-Feb-11 9:46
professionalVladimir Svyatski14-Feb-11 9:46 
GeneralRe: Wonderful naming Pin
Keith Barrow14-Feb-11 10:08
professionalKeith Barrow14-Feb-11 10:08 
GeneralRe: Wonderful naming Pin
Manfred Rudolf Bihy14-Feb-11 10:22
professionalManfred Rudolf Bihy14-Feb-11 10:22 
GeneralRe: Wonderful naming Pin
Keith Barrow14-Feb-11 10:32
professionalKeith Barrow14-Feb-11 10:32 
GeneralRe: Wonderful naming Pin
Manfred Rudolf Bihy14-Feb-11 10:53
professionalManfred Rudolf Bihy14-Feb-11 10:53 
GeneralRe: Wonderful naming Pin
Vladimir Svyatski14-Feb-11 10:33
professionalVladimir Svyatski14-Feb-11 10:33 
GeneralRe: Wonderful naming Pin
Vladimir Svyatski14-Feb-11 10:26
professionalVladimir Svyatski14-Feb-11 10:26 
GeneralRe: Wonderful naming Pin
AspDotNetDev14-Feb-11 10:51
protectorAspDotNetDev14-Feb-11 10:51 
GeneralRe: Wonderful naming [modified] Pin
RobCroll14-Feb-11 16:42
RobCroll14-Feb-11 16:42 
GeneralRe: Wonderful naming Pin
Vladimir Svyatski15-Feb-11 9:43
professionalVladimir Svyatski15-Feb-11 9:43 
GeneralRe: Wonderful naming Pin
Bernhard Hiller16-Feb-11 4:02
Bernhard Hiller16-Feb-11 4:02 
GeneralRegitration Activation Mail Pin
Albin Abel13-Feb-11 23:34
Albin Abel13-Feb-11 23:34 
GeneralRe: Regitration Activation Mail Pin
musefan14-Feb-11 3:10
musefan14-Feb-11 3:10 
GeneralRe: Regitration Activation Mail Pin
Jeroen De Dauw14-Feb-11 3:58
Jeroen De Dauw14-Feb-11 3:58 
GeneralRe: Regitration Activation Mail Pin
AspDotNetDev14-Feb-11 9:19
protectorAspDotNetDev14-Feb-11 9:19 
GeneralRe: Regitration Activation Mail Pin
Jörgen Andersson14-Feb-11 19:56
professionalJörgen Andersson14-Feb-11 19:56 
GeneralRe: Regitration Activation Mail Pin
AspDotNetDev14-Feb-11 20:02
protectorAspDotNetDev14-Feb-11 20: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.