Click here to Skip to main content
15,890,512 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: come on give me a break !! PinPopular
Rahul Rajat Singh14-May-12 2:25
professionalRahul Rajat Singh14-May-12 2:25 
GeneralRe: come on give me a break !! Pin
Jan Steyn14-May-12 4:11
Jan Steyn14-May-12 4:11 
GeneralRe: come on give me a break !! Pin
BillW3314-May-12 3:00
professionalBillW3314-May-12 3:00 
GeneralRe: come on give me a break !! Pin
OriginalGriff14-May-12 3:39
mveOriginalGriff14-May-12 3:39 
GeneralRe: come on give me a break !! Pin
cptKoala14-May-12 3:55
cptKoala14-May-12 3:55 
AnswerRe: come on give me a break !! Pin
AspDotNetDev15-May-12 22:20
protectorAspDotNetDev15-May-12 22:20 
GeneralRe: come on give me a break !! Pin
BillW3316-May-12 2:47
professionalBillW3316-May-12 2:47 
GeneralRe: come on give me a break !! Pin
Ankush Bansal16-May-12 18:50
Ankush Bansal16-May-12 18:50 
I think you are missing a point hereRose | [Rose] .

The issue is not that they have exposed an interface say IAnimal and they only have Duck implementation, and Dog's is pending. The issue is they throwing an exception if concrete impl of IAnimal is external (even if its else's Duck).
Point being why to create a false API? Why to show that API can handle any IAnimal but would throw if animals are external. Laugh | :laugh:

Why can't an IAnimal be external? why can't someone else's Duck be processed?

I personally believe that if any point there is a need of such check then either one should make concrete impl of Duck public and take that as input in func or one can have a public proxy for Duck.
GeneralRe: come on give me a break !! Pin
Pascal Ganaye8-Jun-12 11:15
Pascal Ganaye8-Jun-12 11:15 
GeneralStatics Pin
wizardzz10-May-12 9:32
wizardzz10-May-12 9:32 
GeneralRe: Statics Pin
PIEBALDconsult10-May-12 9:36
mvePIEBALDconsult10-May-12 9:36 
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 
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 

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.