Friday, January 11, 2013

A geek with a hat » My very own daily WTF

A geek with a hat » My very own daily WTF: "Here’s the stuff that really makes my life difficult:

function getPurple(cake) {
cake.color = global_color_setting;
return cake;
}
I don’t know how to even begin refactoring that so it makes sense … it’s just … what? Who does that!?"

'via Blog this'