Click here to Skip to main content
15,895,084 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: I wonder!!!! Pin
PIEBALDconsult6-Nov-08 14:38
mvePIEBALDconsult6-Nov-08 14:38 
GeneralRe: I wonder!!!! Pin
Thomas Weller6-Nov-08 18:51
Thomas Weller6-Nov-08 18:51 
GeneralRe: I wonder!!!! Pin
PIEBALDconsult7-Nov-08 3:36
mvePIEBALDconsult7-Nov-08 3:36 
GeneralRe: I wonder!!!! Pin
Thomas Weller7-Nov-08 3:45
Thomas Weller7-Nov-08 3:45 
GeneralRe: I wonder!!!! Pin
AhsanS6-Nov-08 18:23
AhsanS6-Nov-08 18:23 
GeneralRe: I wonder!!!! Pin
Thomas Weller6-Nov-08 18:48
Thomas Weller6-Nov-08 18:48 
GeneralRe: I wonder!!!! Pin
AhsanS7-Nov-08 0:56
AhsanS7-Nov-08 0:56 
GeneralRe: I wonder!!!! Pin
Thomas Weller7-Nov-08 2:33
Thomas Weller7-Nov-08 2:33 
AhsanS wrote:
where the reference is used it is used as using abc.abc

So the author of this piece of code accidentally created a nested namespace...
This is syntactically correct and being allowed to do so makes perfect sense - generally.

Of course it makes no sense at all to do it that way - I bet this is a CPD (CPD = copy paste desaster Smile | :) ).

Regards
Thomas

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Programmer - an organism that turns coffee into software.


GeneralRe: I wonder!!!! Pin
AhsanS7-Nov-08 8:13
AhsanS7-Nov-08 8:13 
GeneralRe: I wonder!!!! Pin
Thomas Weller7-Nov-08 8:39
Thomas Weller7-Nov-08 8:39 
GeneralRe: I wonder!!!! Pin
Megidolaon23-Feb-09 0:00
Megidolaon23-Feb-09 0:00 
GeneralRe: I wonder!!!! Pin
Paul Conrad6-Nov-08 7:45
professionalPaul Conrad6-Nov-08 7:45 
GeneralRe: I wonder!!!! Pin
PIEBALDconsult6-Nov-08 14:33
mvePIEBALDconsult6-Nov-08 14:33 
GeneralRe: I wonder!!!! Pin
AhsanS6-Nov-08 18:24
AhsanS6-Nov-08 18:24 
GeneralRe: I wonder!!!! Pin
notmasteryet10-Dec-08 7:20
notmasteryet10-Dec-08 7:20 
Generalsomeone who does not trust arithmetic PinPopular
shadayim4-Nov-08 0:44
shadayim4-Nov-08 0:44 
GeneralRe: someone who does not trust arithmetic Pin
negretrucci4-Nov-08 2:17
negretrucci4-Nov-08 2:17 
GeneralRe: someone who does not trust arithmetic Pin
Russell Jones4-Nov-08 2:46
Russell Jones4-Nov-08 2:46 
GeneralRe: someone who does not trust arithmetic PinPopular
Thomas Weller4-Nov-08 3:08
Thomas Weller4-Nov-08 3:08 
GeneralRe: someone who does not trust arithmetic PinPopular
Russell Jones4-Nov-08 3:11
Russell Jones4-Nov-08 3:11 
GeneralRe: someone who does not trust arithmetic Pin
Thomas Weller4-Nov-08 3:26
Thomas Weller4-Nov-08 3:26 
GeneralRe: someone who does not trust arithmetic Pin
Andrew Rissing5-Nov-08 4:02
Andrew Rissing5-Nov-08 4:02 
GeneralRe: someone who does not trust arithmetic Pin
cpkilekofp7-Nov-08 5:34
cpkilekofp7-Nov-08 5:34 
GeneralRe: someone who does not trust arithmetic Pin
Jason Lepack (LeppyR64)4-Nov-08 4:22
Jason Lepack (LeppyR64)4-Nov-08 4:22 
GeneralRe: someone who does not trust arithmetic Pin
CPallini4-Nov-08 3:19
mveCPallini4-Nov-08 3:19 

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.