Click here to Skip to main content
12,997,469 members (58,537 online)

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: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Bernhard Hiller28-Aug-13 21:50
professionalBernhard Hiller28-Aug-13 21:50 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
ProgramFOX28-Aug-13 22:27
member ProgramFOX28-Aug-13 22:27 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Richard Deeming29-Aug-13 2:44
professionalRichard Deeming29-Aug-13 2:44 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Nagy Vilmos29-Aug-13 2:46
professionalNagy Vilmos29-Aug-13 2:46 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Bernhard Hiller29-Aug-13 3:43
professionalBernhard Hiller29-Aug-13 3:43 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
OriginalGriff29-Aug-13 4:00
protectorOriginalGriff29-Aug-13 4:00 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
PIEBALDconsult29-Aug-13 4:54
professionalPIEBALDconsult29-Aug-13 4:54 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
OriginalGriff29-Aug-13 5:50
protectorOriginalGriff29-Aug-13 5:50 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
PIEBALDconsult29-Aug-13 14:51
professionalPIEBALDconsult29-Aug-13 14:51 
JokeRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
richcb4-Sep-13 11:28
memberrichcb4-Sep-13 11:28 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Jean A Brandelero9-Sep-13 7:16
memberJean A Brandelero9-Sep-13 7:16 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
MarkRHolbrook6-Sep-13 3:13
memberMarkRHolbrook6-Sep-13 3:13 
GeneralIf only there were a language construct to handle this case... Pin
lewax0013-Aug-13 7:43
memberlewax0013-Aug-13 7:43 
GeneralRe: If only there were a language construct to handle this case... Pin
Rob Grainger15-Aug-13 0:10
memberRob Grainger15-Aug-13 0:10 
If I use ILASM to disassemble .NET coe, it frequently decodes for-loops like this.

Maybe the original developer appropriated (ie. stole) some code using similar techniques without checking the output carefully.

(Personally, I use it to check correct usage of poorly documented APIs, but I'm sure many are less scrupulous).
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralRe: If only there were a language construct to handle this case... Pin
lewax0015-Aug-13 3:49
memberlewax0015-Aug-13 3:49 
GeneralRe: If only there were a language construct to handle this case... Pin
Dan Neely19-Aug-13 3:24
memberDan Neely19-Aug-13 3:24 
GeneralRe: If only there were a language construct to handle this case... Pin
Rob Grainger26-Aug-13 22:27
memberRob Grainger26-Aug-13 22:27 
GeneralI just made a secret GOTO Pin
peterchen13-Aug-13 7:15
memberpeterchen13-Aug-13 7:15 
GeneralRe: I just made a secret GOTO Pin
Jacek Gajek13-Aug-13 23:40
memberJacek Gajek13-Aug-13 23:40 
GeneralRe: I just made a secret GOTO Pin
Argonia13-Aug-13 23:53
memberArgonia13-Aug-13 23:53 
GeneralRe: I just made a secret GOTO Pin
Freak3013-Aug-13 23:50
memberFreak3013-Aug-13 23:50 
GeneralRe: I just made a secret GOTO Pin
peterchen14-Aug-13 1:24
memberpeterchen14-Aug-13 1:24 
NewsSomething original Pin
Super Lloyd6-Aug-13 21:03
memberSuper Lloyd6-Aug-13 21:03 
JokeRe: Something original Pin
Argonia6-Aug-13 21:24
memberArgonia6-Aug-13 21:24 
GeneralRe: Something original Pin
Super Lloyd7-Aug-13 2:57
memberSuper Lloyd7-Aug-13 2:57 
GeneralRe: Something original Pin
BotCar6-Aug-13 22:01
memberBotCar6-Aug-13 22:01 
GeneralRe: Something original Pin
Argonia6-Aug-13 23:36
memberArgonia6-Aug-13 23:36 
GeneralRe: Something original Pin
MarkRHolbrook6-Sep-13 3:20
memberMarkRHolbrook6-Sep-13 3:20 
GeneralRe: Something original Pin
MarkRHolbrook6-Sep-13 6:18
memberMarkRHolbrook6-Sep-13 6:18 
GeneralRe: Something original Pin
AlexCode6-Aug-13 23:45
professionalAlexCode6-Aug-13 23:45 
GeneralRe: Something original Pin
Argonia7-Aug-13 0:19
memberArgonia7-Aug-13 0:19 
GeneralRe: Something original Pin
AlexCode7-Aug-13 1:09
professionalAlexCode7-Aug-13 1:09 
GeneralRe: Something original Pin
Super Lloyd7-Aug-13 3:00
memberSuper Lloyd7-Aug-13 3:00 
GeneralRe: Something original Pin
PIEBALDconsult7-Aug-13 4:41
professionalPIEBALDconsult7-Aug-13 4:41 
GeneralRe: Something original Pin
Sentenryu7-Aug-13 9:18
memberSentenryu7-Aug-13 9:18 
GeneralRe: Something original Pin
Super Lloyd7-Aug-13 14:13
memberSuper Lloyd7-Aug-13 14:13 
GeneralRe: Something original Pin
Brisingr Aerowing8-Aug-13 2:38
professionalBrisingr Aerowing8-Aug-13 2:38 
GeneralRe: Something original Pin
Jacek Gajek13-Aug-13 5:45
memberJacek Gajek13-Aug-13 5:45 
GeneralRe: Something original Pin
Sentenryu13-Aug-13 6:32
memberSentenryu13-Aug-13 6:32 
GeneralRe: Something original Pin
Jacek Gajek13-Aug-13 23:21
memberJacek Gajek13-Aug-13 23:21 
GeneralRe: Something original Pin
Sentenryu14-Aug-13 3:22
memberSentenryu14-Aug-13 3:22 
GeneralRe: Something original Pin
Jacek Gajek14-Aug-13 4:21
memberJacek Gajek14-Aug-13 4:21 
GeneralRe: Something original Pin
BCantor13-Aug-13 5:05
memberBCantor13-Aug-13 5:05 
GeneralRe: Something original Pin
Jacek Gajek13-Aug-13 5:51
memberJacek Gajek13-Aug-13 5:51 
GeneralRe: Something original Pin
Brisingr Aerowing19-Aug-13 16:20
professionalBrisingr Aerowing19-Aug-13 16:20 
GeneralRe: Something original Pin
ExcellentOrg21-Aug-13 0:04
groupExcellentOrg21-Aug-13 0:04 
RantFsking ASP.NET! Pin
Richard Deeming6-Aug-13 10:00
professionalRichard Deeming6-Aug-13 10:00 
GeneralRe: Fsking ASP.NET! Pin
Bernhard Hiller6-Aug-13 20:57
professionalBernhard Hiller6-Aug-13 20:57 
GeneralRe: Fsking ASP.NET! Pin
Sentenryu7-Aug-13 9:08
memberSentenryu7-Aug-13 9:08 
GeneralWhen things to more than you think Pin
imagiro6-Aug-13 7:17
memberimagiro6-Aug-13 7:17 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.170622.1 | Last Updated 23 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid