Click here to Skip to main content
15,917,875 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: This is just for the laugh of it. Pin
Malli_S23-Sep-08 4:59
Malli_S23-Sep-08 4:59 
GeneralRe: This is just for the laugh of it. Pin
adamsappel25-Sep-08 0:40
adamsappel25-Sep-08 0:40 
GeneralRe: This is just for the laugh of it. Pin
VentsyV1-Oct-08 11:57
VentsyV1-Oct-08 11:57 
GeneralRe: This is just for the laugh of it. Pin
Paul Conrad22-Sep-08 6:22
professionalPaul Conrad22-Sep-08 6:22 
GeneralRe: This is just for the laugh of it. Pin
Malli_S23-Sep-08 4:55
Malli_S23-Sep-08 4:55 
GeneralRe: This is just for the laugh of it. Pin
cpkilekofp25-Sep-08 3:16
cpkilekofp25-Sep-08 3:16 
GeneralRe: This is just for the laugh of it. Pin
VentsyV1-Oct-08 11:58
VentsyV1-Oct-08 11:58 
GeneralRe: This is just for the laugh of it. Pin
cpkilekofp2-Oct-08 4:53
cpkilekofp2-Oct-08 4:53 
GeneralRe: This is just for the laugh of it. Pin
KarstenK28-Sep-08 21:15
mveKarstenK28-Sep-08 21:15 
GeneralThe Loop Pin
cigicd17-Sep-08 4:10
cigicd17-Sep-08 4:10 
GeneralRe: The Loop Pin
CPallini17-Sep-08 5:27
mveCPallini17-Sep-08 5:27 
GeneralRe: The Loop Pin
StevenWalsh17-Sep-08 9:25
StevenWalsh17-Sep-08 9:25 
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? Pin
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 

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.