Click here to Skip to main content
15,918,967 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: Sometimes I wonder about code comments Pin
Marco Bertschi19-Feb-13 3:41
protectorMarco Bertschi19-Feb-13 3:41 
GeneralRe: Sometimes I wonder about code comments Pin
PIEBALDconsult19-Feb-13 3:57
mvePIEBALDconsult19-Feb-13 3:57 
GeneralRe: Sometimes I wonder about code comments Pin
Marco Bertschi19-Feb-13 4:12
protectorMarco Bertschi19-Feb-13 4:12 
GeneralMessage Removed Pin
19-Feb-13 4:16
professionalN_tro_P19-Feb-13 4:16 
GeneralRe: Sometimes I wonder about code comments Pin
Marco Bertschi19-Feb-13 4:36
protectorMarco Bertschi19-Feb-13 4:36 
GeneralRe: Sometimes I wonder about code comments Pin
SoMad19-Feb-13 9:56
professionalSoMad19-Feb-13 9:56 
GeneralRe: Sometimes I wonder about code comments Pin
PIEBALDconsult19-Feb-13 12:59
mvePIEBALDconsult19-Feb-13 12:59 
GeneralRe: Sometimes I wonder about code comments Pin
Bernhard Hiller19-Feb-13 22:04
Bernhard Hiller19-Feb-13 22:04 
GeneralRe: Sometimes I wonder about code comments Pin
Marco Bertschi20-Feb-13 9:56
protectorMarco Bertschi20-Feb-13 9:56 
GeneralRe: Sometimes I wonder about code comments Pin
BobJanova20-Feb-13 4:12
BobJanova20-Feb-13 4:12 
GeneralRe: Sometimes I wonder about code comments Pin
krumia3-Mar-13 5:35
krumia3-Mar-13 5:35 
RantRe: Sometimes I wonder about code comments Pin
Super Lloyd4-Mar-13 13:32
Super Lloyd4-Mar-13 13:32 
GeneralRe: Sometimes I wonder about code comments Pin
wout de zeeuw6-Mar-13 14:31
wout de zeeuw6-Mar-13 14:31 
GeneralThis is the kind of productivity you get when you pay by lines of code Pin
Rob Grainger18-Feb-13 1:18
Rob Grainger18-Feb-13 1:18 
JokeRe: This is the kind of productivity you get when you pay by lines of code Pin
AspDotNetDev18-Feb-13 9:32
protectorAspDotNetDev18-Feb-13 9:32 
GeneralRe: This is the kind of productivity you get when you pay by lines of code Pin
Sander Rossel18-Feb-13 20:45
professionalSander Rossel18-Feb-13 20:45 
GeneralRe: This is the kind of productivity you get when you pay by lines of code Pin
OriginalGriff19-Feb-13 4:59
mveOriginalGriff19-Feb-13 4:59 
GeneralRe: This is the kind of productivity you get when you pay by lines of code Pin
Bernhard Hiller19-Feb-13 5:05
Bernhard Hiller19-Feb-13 5:05 
GeneralRe: This is the kind of productivity you get when you pay by lines of code Pin
fjdiewornncalwe20-Feb-13 3:13
professionalfjdiewornncalwe20-Feb-13 3:13 
GeneralRe: This is the kind of productivity you get when you pay by lines of code Pin
wout de zeeuw6-Mar-13 14:31
wout de zeeuw6-Mar-13 14:31 
GeneralIF-free codes Pin
SarK0Y15-Feb-13 12:34
SarK0Y15-Feb-13 12:34 
GeneralRe: IF-free codes Pin
Paul Conrad15-Feb-13 12:54
professionalPaul Conrad15-Feb-13 12:54 
GeneralRe: IF-free codes Pin
SarK0Y15-Feb-13 13:06
SarK0Y15-Feb-13 13:06 
GeneralRe: IF-free codes Pin
Gary Wheeler19-Feb-13 0:17
Gary Wheeler19-Feb-13 0:17 
GeneralRe: IF-free codes Pin
Chad3F20-Feb-13 19:03
Chad3F20-Feb-13 19:03 
Especially with moores law hitting the ceiling lately (until someone finds a trick to break through and go up another 100 floors). Can't make it go any faster -- so add more cores. Can't utilize all the cores -- so add more microcode parallelism. Soon they might end up having CPUs that can follow dozens and dozens of branch path pipelines at the same time (until it can prune unused ones). Of course, the information that can be saves during context switches may limit that technique.

On a side note.. Some languages (like Smalltalk) don't actually use branching in "if"'s (well, their equivalent to an if).. what may seem a condition check/branch is really an expression returning a boolean object, and then when asked to _run_ the "ifTrue" conditional code block it either does, if it is a "true" object, or doesn't if a "false" object, without any checks/branching. And the same for the "ifFalse" (aka "else") code blocks, only reversed.

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.