Click here to Skip to main content
15,895,812 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.

 
GeneraliScreen = iScreen < 8 ? iScream : ... PinPopular
David MacDermot1-Aug-12 10:26
David MacDermot1-Aug-12 10:26 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
Paul Conrad1-Aug-12 17:40
professionalPaul Conrad1-Aug-12 17:40 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
egenis1-Aug-12 19:20
egenis1-Aug-12 19:20 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
Andrei Straut1-Aug-12 22:51
Andrei Straut1-Aug-12 22:51 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... PinPopular
BobJanova1-Aug-12 23:06
BobJanova1-Aug-12 23:06 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
Jonathan C Dickinson2-Aug-12 21:56
Jonathan C Dickinson2-Aug-12 21:56 
JokeRe: iScreen = iScreen < 8 ? iScream : ... Pin
Adriaan Davel2-Aug-12 21:04
Adriaan Davel2-Aug-12 21:04 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
Reese Currie3-Aug-12 3:12
Reese Currie3-Aug-12 3:12 
The code quality is reminiscent of the legacy code I used to maintain that was written in the 70's and early 80's, before Ed Yourdon et. al. started talking about structured programming, which is itself a very old paradigm. I count a cyclomatic complexity of 51 (academia says 10 is "maintainable", really 18 or so if you stretch it) and it's full of "magic numbers" that have no obvious meaning other than they appear to be "screen numbers". It is kind of depressing to see that kind of code being written in a modern language, 30 years after the first efforts were made to educate people out of these kinds of practices.
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
SeattleC++3-Aug-12 6:04
SeattleC++3-Aug-12 6:04 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
agolddog3-Aug-12 4:12
agolddog3-Aug-12 4:12 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
BobJanova3-Aug-12 4:58
BobJanova3-Aug-12 4:58 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
David MacDermot3-Aug-12 7:31
David MacDermot3-Aug-12 7:31 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
RafagaX3-Aug-12 5:19
professionalRafagaX3-Aug-12 5:19 
GeneralRe: iScreen = iScreen < 8 ? iScream : ... Pin
Brisingr Aerowing15-Aug-12 15:20
professionalBrisingr Aerowing15-Aug-12 15:20 
General:'-( PinPopular
AspDotNetDev30-Jul-12 6:43
protectorAspDotNetDev30-Jul-12 6:43 
GeneralRe: :'-( Pin
Chris Meech30-Jul-12 7:10
Chris Meech30-Jul-12 7:10 
GeneralRe: :'-( PinPopular
AspDotNetDev30-Jul-12 7:20
protectorAspDotNetDev30-Jul-12 7:20 
GeneralRe: :'-( Pin
ExcellentOrg31-Jul-12 23:39
ExcellentOrg31-Jul-12 23:39 
GeneralRe: :'-( Pin
Andrei Straut30-Jul-12 9:07
Andrei Straut30-Jul-12 9:07 
GeneralRe: :'-( Pin
Pete O'Hanlon30-Jul-12 10:48
mvePete O'Hanlon30-Jul-12 10:48 
GeneralRe: :'-( Pin
AspDotNetDev30-Jul-12 12:59
protectorAspDotNetDev30-Jul-12 12:59 
GeneralRe: :'-( Pin
Pete O'Hanlon30-Jul-12 23:37
mvePete O'Hanlon30-Jul-12 23:37 
GeneralRe: :'-( Pin
Tom Deketelaere31-Jul-12 0:03
professionalTom Deketelaere31-Jul-12 0:03 
GeneralRe: :'-( Pin
Alan Burkhart1-Aug-12 17:28
Alan Burkhart1-Aug-12 17:28 
GeneralRe: :'-( Pin
ExcellentOrg31-Jul-12 23:41
ExcellentOrg31-Jul-12 23:41 

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.