Click here to Skip to main content
15,887,676 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: ISP hacked Pin
patbob16-Feb-12 6:28
patbob16-Feb-12 6:28 
GeneralRe: ISP hacked Pin
cegarman17-Feb-12 3:09
cegarman17-Feb-12 3:09 
GeneralRe: ISP hacked Pin
Nitin S7-Mar-12 0:12
professionalNitin S7-Mar-12 0:12 
GeneralRe: ISP hacked Pin
Jeroen De Dauw10-Mar-12 14:28
Jeroen De Dauw10-Mar-12 14:28 
GeneralStraight from the horse's mouth PinPopular
Rob Grainger12-Feb-12 14:15
Rob Grainger12-Feb-12 14:15 
JokeRe: Straight from the horse's mouth Pin
Peter_in_278012-Feb-12 19:18
professionalPeter_in_278012-Feb-12 19:18 
GeneralRe: Straight from the horse's mouth Pin
Bernhard Hiller12-Feb-12 21:41
Bernhard Hiller12-Feb-12 21:41 
GeneralRe: Straight from the horse's mouth Pin
CDP180212-Feb-12 22:07
CDP180212-Feb-12 22:07 
Rob Grainger wrote:
If a programmer doesn't get logic, it's probably time to consider another career
choice.

Do you know him? Perhaps he already had more of a career than you think. What if he's just an old C/C++ veteran and never got used to having the conditions result in boolean values (instead of 0 and something non-zero)?

Without having looked at the disassembly: Does the compiler not eliminate such simple things? In that case I would usually say that a difference, which makes no difference, is no difference. 'Real' redundancy usually occurs in heaps of spaghetti code where the programmer was unable to separate the tasks at hand and started to copy and paste code blocks where when he became unable to untangle his own mess.
I'm invincible, I can't be vinced



GeneralRe: Straight from the horse's mouth Pin
BobJanova12-Feb-12 23:05
BobJanova12-Feb-12 23:05 
GeneralRe: Straight from the horse's mouth Pin
CDP180213-Feb-12 0:03
CDP180213-Feb-12 0:03 
GeneralRe: Straight from the horse's mouth Pin
BobJanova13-Feb-12 3:45
BobJanova13-Feb-12 3:45 
GeneralRe: Straight from the horse's mouth Pin
Rob Grainger13-Feb-12 4:35
Rob Grainger13-Feb-12 4:35 
GeneralRe: Straight from the horse's mouth Pin
Frank Peelo14-Feb-12 0:49
Frank Peelo14-Feb-12 0:49 
GeneralRe: Straight from the horse's mouth Pin
Rob Grainger13-Feb-12 4:39
Rob Grainger13-Feb-12 4:39 
GeneralRe: Straight from the horse's mouth Pin
Dan Neely13-Feb-12 17:31
Dan Neely13-Feb-12 17:31 
GeneralRe: Straight from the horse's mouth Pin
Marc Greiner at home14-Feb-12 4:58
Marc Greiner at home14-Feb-12 4:58 
GeneralRe: Straight from the horse's mouth Pin
CDP180214-Feb-12 5:36
CDP180214-Feb-12 5:36 
GeneralRe: Straight from the horse's mouth Pin
Rob Grainger14-Feb-12 8:53
Rob Grainger14-Feb-12 8:53 
GeneralRe: Straight from the horse's mouth Pin
GibbleCH13-Feb-12 6:16
GibbleCH13-Feb-12 6:16 
GeneralRe: Straight from the horse's mouth Pin
Jeremy Hutchinson14-Feb-12 1:30
professionalJeremy Hutchinson14-Feb-12 1:30 
GeneralRe: Straight from the horse's mouth Pin
Vladimir Svyatski13-Feb-12 20:21
professionalVladimir Svyatski13-Feb-12 20:21 
GeneralRe: Straight from the horse's mouth Pin
Fran Porretto14-Feb-12 1:06
Fran Porretto14-Feb-12 1:06 
GeneralRe: Straight from the horse's mouth Pin
User 483504714-Feb-12 3:13
User 483504714-Feb-12 3:13 
GeneralRe: Straight from the horse's mouth Pin
BrainiacV14-Feb-12 3:58
BrainiacV14-Feb-12 3:58 
GeneralRe: Straight from the horse's mouth Pin
Massimo Perrone14-Feb-12 5:37
Massimo Perrone14-Feb-12 5:37 

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.