Click here to Skip to main content
12,401,985 members (51,588 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
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 
GeneralRe: If only there were a language construct to handle this case... Pin
lewax0015-Aug-13 3:49
memberlewax0015-Aug-13 3:49 
Rob Grainger wrote:
it frequently decodes for-loops like this

Of course, the simplest way to write a loop in an assembly-like language is something like:
// for ([assignment]; [condition]; [increment]) { [body] }
[assignment]
start_loop:
if ![condition] goto end_loop
[body]
[increment]
goto start_loop
end_loop:
That doesn't mean it should be written that way in a high-level language though, even if you technically can.
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 

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
Web02 | 2.8.160721.1 | Last Updated 27 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid