"While reviewing some of our older code," Rob Jacobs wrote, "I stumbled upon this."

// NOTE: Please think twice before changing the next line of code ;-D
// Store float binary in char array
*((unsigned int*)(&x[4])) = *((unsigned int*)(&value)); 

"I showed this to my coworkers," Rob continued, "and we all agreed: while functional, this sort of thing will land you in your own circle in hell. I'd be remiss not to scold the original coder for such bad practices, so I peeked in SVN to see who was responsible."

$ svn log
r3 | rjacobs | Thu, 18 Jul 2002 18:03:46 -0500 | 10 lines
r2 | rjacobs | Mon, 15 Jul 2002 17:47:57 -0500 | 1 line
r1 | rjacobs | Mon, 15 Jul 2002 17:40:08 -0500 | 34 lines

"Whoops."

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!