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

 
JokeRe: Statics Pin
AspDotNetDev10-May-12 10:11
protectorAspDotNetDev10-May-12 10:11 
GeneralAaaaaaaaargh Pin
krumia11-May-12 2:59
krumia11-May-12 2:59 
GeneralRe: Statics Pin
ekolis10-May-12 13:33
ekolis10-May-12 13:33 
GeneralRe: Statics Pin
BillW3310-May-12 13:40
professionalBillW3310-May-12 13:40 
GeneralRe: Statics Pin
Bernhard Hiller10-May-12 22:35
Bernhard Hiller10-May-12 22:35 
GeneralRe: Statics Pin
PIEBALDconsult11-May-12 5:13
mvePIEBALDconsult11-May-12 5:13 
JokeRe: Statics Pin
Rahul Rajat Singh14-May-12 2:32
professionalRahul Rajat Singh14-May-12 2:32 
GeneralRe: Statics Pin
Sander Rossel17-May-12 12:31
professionalSander Rossel17-May-12 12:31 
My boss recently got the habit of making a 'helper class' for just about anything. Each helper class has one shared (static) function that is usually called in just one place in the code. Even the helper classes have helper classes and each class is a seperate file sometimes even in seperate folders... Sigh | :sigh:
I am guessing he does this because classes now have a 'single responsibility'. Mixing up 'single method' and 'single responibility' is a common mistake I think. It especially doesn't hold true if all methods are shared (static). I'm also not about to argue about it with him. If he comes up with this kind of stuff you can imagine what kind of programmer he is: one that simply doesn't understand.
It's an OO world.
C#
public class Naerling : Lazy<Person>{
    public void DoWork(){ throw new NotImplementedException(); }
}

GeneralRe: Statics Pin
Brisingr Aerowing23-May-12 13:08
professionalBrisingr Aerowing23-May-12 13:08 
GeneralProblem? Pin
glhrmbhnrt10-May-12 2:57
glhrmbhnrt10-May-12 2:57 
GeneralRe: Problem? Pin
BobJanova11-May-12 3:55
BobJanova11-May-12 3:55 
GeneralReally??? Pin
KP Lee9-May-12 20:36
KP Lee9-May-12 20:36 
GeneralRe: Really??? Pin
glhrmbhnrt10-May-12 2:24
glhrmbhnrt10-May-12 2:24 
GeneralRe: Really??? Pin
BillW3310-May-12 4:08
professionalBillW3310-May-12 4:08 
GeneralKinda guy Pin
glhrmbhnrt9-May-12 8:02
glhrmbhnrt9-May-12 8:02 
GeneralRe: Kinda guy Pin
CDP18029-May-12 21:08
CDP18029-May-12 21:08 
GeneralRe: Kinda guy Pin
Mohibur Rashid15-May-12 20:08
professionalMohibur Rashid15-May-12 20:08 
GeneralRe: Kinda guy Pin
BobJanova9-May-12 23:02
BobJanova9-May-12 23:02 
GeneralRe: Kinda guy Pin
CDP18029-May-12 23:14
CDP18029-May-12 23:14 
GeneralRe: Kinda guy Pin
BillW3310-May-12 4:05
professionalBillW3310-May-12 4:05 
GeneralRe: Kinda guy Pin
PIEBALDconsult10-May-12 6:19
mvePIEBALDconsult10-May-12 6:19 
GeneralConstant Headache Pin
AspDotNetDev7-May-12 15:04
protectorAspDotNetDev7-May-12 15:04 
GeneralRe: Constant Headache Pin
ekolis9-May-12 6:26
ekolis9-May-12 6:26 
GeneralRe: Constant Headache Pin
AspDotNetDev9-May-12 7:12
protectorAspDotNetDev9-May-12 7:12 
GeneralRe: Constant Headache Pin
ZurdoDev10-May-12 6:39
professionalZurdoDev10-May-12 6:39 

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.