Click here to Skip to main content
15,879,535 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: SetDate Pin
loctrice26-Apr-12 8:52
professionalloctrice26-Apr-12 8:52 
GeneralRe: SetDate Pin
GibbleCH26-Apr-12 9:00
GibbleCH26-Apr-12 9:00 
GeneralRe: SetDate Pin
Brisingr Aerowing26-Apr-12 9:06
professionalBrisingr Aerowing26-Apr-12 9:06 
GeneralRe: SetDate Pin
Brisingr Aerowing26-Apr-12 9:05
professionalBrisingr Aerowing26-Apr-12 9:05 
GeneralRe: SetDate Pin
loctrice26-Apr-12 11:01
professionalloctrice26-Apr-12 11:01 
GeneralRe: SetDate Pin
Brisingr Aerowing26-Apr-12 12:54
professionalBrisingr Aerowing26-Apr-12 12:54 
GeneralRe: SetDate Pin
loctrice26-Apr-12 16:01
professionalloctrice26-Apr-12 16:01 
JokeRe: SetDate PinPopular
AspDotNetDev26-Apr-12 13:45
protectorAspDotNetDev26-Apr-12 13:45 
It's obvious this guy added the SetDate implementation to a class that implements the IDateRepository in order to facilitate dependency injection and the factory pattern! All the better I say. Should minimize the impact of the Y3K bug and enable unit testing of date functionality against realistic data.

GeneralRe: SetDate Pin
Bernhard Hiller26-Apr-12 22:02
Bernhard Hiller26-Apr-12 22:02 
GeneralRe: SetDate Pin
loctrice27-Apr-12 1:53
professionalloctrice27-Apr-12 1:53 
GeneralRe: SetDate Pin
R. Giskard Reventlov27-Apr-12 12:39
R. Giskard Reventlov27-Apr-12 12:39 
GeneralThats why i hate c++ Pin
Vasily Tserekh24-Apr-12 3:35
Vasily Tserekh24-Apr-12 3:35 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh24-Apr-12 3:43
Vasily Tserekh24-Apr-12 3:43 
GeneralRe: Thats why i hate c++ PinPopular
glennPattonWork327-Apr-12 0:18
professionalglennPattonWork327-Apr-12 0:18 
GeneralRe: Thats why i hate c++ Pin
Member 376360827-Apr-12 7:48
Member 376360827-Apr-12 7:48 
GeneralRe: Thats why i hate c++ Pin
StephenPhillips29-Apr-12 0:28
StephenPhillips29-Apr-12 0:28 
GeneralRe: Thats why i hate c++ Pin
Keith.Badeau29-Apr-12 6:25
Keith.Badeau29-Apr-12 6:25 
GeneralRe: Thats why i hate c++ PinPopular
jeron124-Apr-12 6:38
jeron124-Apr-12 6:38 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh24-Apr-12 8:20
Vasily Tserekh24-Apr-12 8:20 
GeneralRe: Thats why i hate c++ Pin
Chris Meech24-Apr-12 9:09
Chris Meech24-Apr-12 9:09 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh24-Apr-12 10:06
Vasily Tserekh24-Apr-12 10:06 
GeneralRe: Thats why i hate c++ PinPopular
CDP180224-Apr-12 10:48
CDP180224-Apr-12 10:48 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh24-Apr-12 14:16
Vasily Tserekh24-Apr-12 14:16 
GeneralRe: Thats why i hate c++ PinPopular
Mohibur Rashid24-Apr-12 17:27
professionalMohibur Rashid24-Apr-12 17:27 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh25-Apr-12 2:48
Vasily Tserekh25-Apr-12 2:48 

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.