A Perfect 10

by Mark Bowytz in CodeSOD on 2014-12-18

two-hands-equals-10-fingersAndrew found this code on the product pages of a fairly popular automotive e-commerce website. It's called whenever an 'attribute' of a product (size, color, etc.) is selected or changed by the user.

The main focus of this code is to update a concatenation of the values of all currently selected attributes which are stored in a hidden form input field. Once it has done that, it hands off to another function to make an AJAX request with this concatenated value as a parameter.

15 Comments - Last Comment @ 15:39

JSON at Crystal Lake

by Remy Porter in CodeSOD on 2014-12-16

Trevor found an unusual bug. Every customer had a GUID, but for some reason, their JSON API failed if there were ever more that 75 results.

He checked the web layer, only to find that it didn’t actually build the JSON- it just returned a string. The string itself came from their Oracle database. That’s where this procedure came from:

49 Comments - Last Comment @ 2014-12-17

Good Help is Hard to Find

by Mark Bowytz in Error'd on 2014-12-12

Daniel writes, "Looking for world class talent? Sorry...you won't be finding it here."

23 Comments - Last Comment @ 2014-12-16

Polynomial Optimization

by Remy Porter in CodeSOD on 2014-12-11

Marlschlag falsch&Schlingen

Rayer S’s co-worker exploded into his cube, beaming. “I’ve just optimized our processing loop. I’ve gone from O(n2) to O(n)!”

46 Comments - Last Comment @ 2014-12-17

You Can't Fire Us Until We Quit

by Mark Bowytz in CodeSOD on 2014-12-09

When one of Felix G’s newest design customers decided that they were officially unhappy with their current web-agency, another company's loss was his gain.

His first assignment was a simple one - remove the code that displayed the website’s creator credits (something like 'developed by xyz') from an external website.

99 Comments - Last Comment @ 2014-12-16
View Article Archives »