Click here to Skip to main content
15,889,879 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: The Loop Pin
dighn17-Sep-08 9:58
dighn17-Sep-08 9:58 
GeneralOT Pin
CPallini17-Sep-08 10:11
mveCPallini17-Sep-08 10:11 
GeneralRe: The Loop Pin
Joe Woodbury17-Sep-08 11:00
professionalJoe Woodbury17-Sep-08 11:00 
GeneralRe: The Loop Pin
Paul Conrad17-Sep-08 15:33
professionalPaul Conrad17-Sep-08 15:33 
GeneralTo me this is a coding horror, and to you? [modified] Pin
geoffs15-Sep-08 20:35
geoffs15-Sep-08 20:35 
GeneralRe: To me this is a coding horror, and to you? Pin
GDavy15-Sep-08 20:47
GDavy15-Sep-08 20:47 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs15-Sep-08 20:50
geoffs15-Sep-08 20:50 
GeneralRe: To me this is a coding horror, and to you? Pin
GDavy16-Sep-08 3:23
GDavy16-Sep-08 3:23 
geoffs wrote:
as you get older

Don't worry about it, I can have that too, and I'm not that old yet (little over 30). And luckily not everything I think is being translated into what I'm typing Wink | ;)

As to your original post, I completely agree with you. I have the unlucky position to have to tackle code that has multiple gems like these.
Is the logical expression that difficult to read for some that they have to literally assign a 'true' or 'false'? Or perhaps the coder fears that the logical expression returns a different kind of bool than true or false?
I myself find it bad code-practice.
GeneralRe: To me this is a coding horror, and to you? PinPopular
QuiJohn16-Sep-08 4:16
QuiJohn16-Sep-08 4:16 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs16-Sep-08 4:25
geoffs16-Sep-08 4:25 
GeneralRe: To me this is a coding horror, and to you? Pin
Megidolaon15-Sep-08 20:55
Megidolaon15-Sep-08 20:55 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs15-Sep-08 21:02
geoffs15-Sep-08 21:02 
GeneralRe: To me this is a coding horror, and to you? Pin
CDP180216-Sep-08 4:39
CDP180216-Sep-08 4:39 
GeneralRe: To me this is a coding horror, and to you? [modified] Pin
geoffs16-Sep-08 4:52
geoffs16-Sep-08 4:52 
GeneralRe: To me this is a coding horror, and to you? Pin
BillW3316-Sep-08 6:02
professionalBillW3316-Sep-08 6:02 
GeneralRe: To me this is a coding horror, and to you? Pin
CDP180216-Sep-08 6:03
CDP180216-Sep-08 6:03 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs16-Sep-08 6:19
geoffs16-Sep-08 6:19 
GeneralRe: To me this is a coding horror, and to you? Pin
CDP180216-Sep-08 21:53
CDP180216-Sep-08 21:53 
GeneralRe: To me this is a coding horror, and to you? Pin
Kevin McFarlane17-Sep-08 0:24
Kevin McFarlane17-Sep-08 0:24 
GeneralRe: To me this is a coding horror, and to you? Pin
Megidolaon25-Feb-09 22:26
Megidolaon25-Feb-09 22:26 
GeneralRe: To me this is a coding horror, and to you? Pin
Dan Neely16-Sep-08 2:08
Dan Neely16-Sep-08 2:08 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs16-Sep-08 3:17
geoffs16-Sep-08 3:17 
GeneralRe: To me this is a coding horror, and to you? PinPopular
dojohansen16-Sep-08 2:19
dojohansen16-Sep-08 2:19 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs16-Sep-08 3:18
geoffs16-Sep-08 3:18 
GeneralRe: To me this is a coding horror, and to you? Pin
geoffs19-Sep-08 5:39
geoffs19-Sep-08 5:39 

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.