Click here to Skip to main content
15,881,089 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: Efficiency redux Pin
Lutosław27-Jul-12 23:16
Lutosław27-Jul-12 23:16 
GeneralRe: Efficiency redux Pin
rtklueh19-Jul-12 5:19
rtklueh19-Jul-12 5:19 
General1,2,3,4...lots of...what exactly? PinPopular
Andrei Straut18-Jul-12 4:49
Andrei Straut18-Jul-12 4:49 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
BillW3318-Jul-12 6:37
professionalBillW3318-Jul-12 6:37 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
Andrei Straut18-Jul-12 8:09
Andrei Straut18-Jul-12 8:09 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
Shameel25-Jul-12 2:11
professionalShameel25-Jul-12 2:11 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
S Houghtelin19-Jul-12 2:21
professionalS Houghtelin19-Jul-12 2:21 
GeneralMake sure this value is returned... PinPopular
cmger18-Jul-12 3:21
cmger18-Jul-12 3:21 
Hi all,

I was already reading this forum when it was still called the "Hall of shame".

I've got a product to maintain that was created by a developer who is no longer working for us.
Even though I've already seen plenty of "hall of shame worthy" code there, I've have never posted it here, because it would have been my first post on CP ever and I thought it is a bad idea to say hello to a community while bashing an ex colleague.

However, I came across a piece of code that I can't keep for myself and so I'll do what I didn't want to do and bash in my first post:

At the end of a long method I found this one:

C#
try
{
    return true;
}
catch (Exception)
{
    return false;
}


Cheers,
cmger
GeneralRe: Make sure this value is returned... Pin
BillW3318-Jul-12 4:07
professionalBillW3318-Jul-12 4:07 
GeneralRe: Make sure this value is returned... Pin
cmger18-Jul-12 4:34
cmger18-Jul-12 4:34 
GeneralRe: Make sure this value is returned... Pin
Andrei Straut18-Jul-12 4:56
Andrei Straut18-Jul-12 4:56 
GeneralRe: Make sure this value is returned... Pin
BillW3318-Jul-12 6:32
professionalBillW3318-Jul-12 6:32 
GeneralRe: Make sure this value is returned... Pin
cmger18-Jul-12 20:34
cmger18-Jul-12 20:34 
GeneralRe: Make sure this value is returned... Pin
BillW3319-Jul-12 7:22
professionalBillW3319-Jul-12 7:22 
GeneralRe: Make sure this value is returned... Pin
greldak18-Jul-12 21:53
greldak18-Jul-12 21:53 
GeneralRe: Make sure this value is returned... Pin
Renzo Ciafardone19-Jul-12 7:24
Renzo Ciafardone19-Jul-12 7:24 
GeneralA new definition of efficiency PinPopular
PaulLinton16-Jul-12 19:57
PaulLinton16-Jul-12 19:57 
GeneralRe: A new definition of efficiency Pin
enhzflep16-Jul-12 20:31
enhzflep16-Jul-12 20:31 
GeneralRe: A new definition of efficiency Pin
RobCroll16-Jul-12 21:13
RobCroll16-Jul-12 21:13 
GeneralRe: A new definition of efficiency PinPopular
OriginalGriff16-Jul-12 22:39
mveOriginalGriff16-Jul-12 22:39 
JokeRe: A new definition of efficiency PinPopular
Andrew Rissing17-Jul-12 4:23
Andrew Rissing17-Jul-12 4:23 
GeneralRe: A new definition of efficiency Pin
OriginalGriff17-Jul-12 4:45
mveOriginalGriff17-Jul-12 4:45 
GeneralRe: A new definition of efficiency PinPopular
Andrew Rissing17-Jul-12 5:26
Andrew Rissing17-Jul-12 5:26 
GeneralRe: A new definition of efficiency Pin
SortaCore18-Jul-12 19:39
SortaCore18-Jul-12 19:39 
GeneralRe: A new definition of efficiency Pin
_Amy18-Jul-12 0:06
professional_Amy18-Jul-12 0: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.