We get a two-for-one today from Dave, who sends in this Javascript function he found in a product cart implementation page he was lucky enough to inherit ...

My guess is that the programmer behind this was too lazy to look up string manipulation functions for javascript. The optimist in me says it's a good thing that professionals in other fields don't act the same way ...

“Okay, I've completed your tax return. Of course, I'm only familiar with the Brazilian tax code, but you should be fine so long as you don't get audited.”

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