Parallel SQL Queries

by snoofle in CodeSOD

Daniele worked at a pharmaceutical firm that had an old web application that allowed commercial customers to look up information. Since the data was quite complicated, there were numerous fields that needed to be queried in order to populate the form.

Unfortunately, as the amount of data in the system grew, the time to load the form grew as well. And grew. And grew.

56 Comments - Last Comment @ 2014-10-20

The New Look is Here

by Alex Papadimoulis in Announcements

As you may have noticed, the site looks quite a bit different! As I mentioned back in March, it's been almost seven years since the look and feel of The Daily WTF has been updated, and I was getting pretty tired of the "2003ish" vibe the site had.

You guys gave some fantastic feedback to help guide the new design, and in July I shared a preview look. After some more feedback - both on the GitHub issue tracker and the forums - we put on the finishing touches and launched the site this evening.

88 Comments - Last Comment @ 00:18

Sorry, but You Can't Do the Math

by Mark Bowytz in Error'd

"I guess that Intuit might have reasons for not allowing me to say Math was my least favorite subject in school," writes Alan R.

51 Comments - Last Comment @ 2014-10-20

Line by Line

by Remy Porter in CodeSOD

In the bowels of a business unit, a director got a great deal on a third party software package. He bought it, without talking to corporate IT, and then was upset when it couldn’t gracefully integrate with any of the corporate IT assets. Eager to throw good money after bad, the director hired his nephew’s consultancy to build an integration tool to make his new toy work.

A few months later, the users complained about performance, and somehow, fixing this thing became Jeff’s problem. The process was simple enough: slurp enterprise data out of a text file, and pass the data on to the third-party tool. It didn’t take Jeff long to figure out why it performed poorly:

55 Comments - Last Comment @ 01:19

We Don't Need no Stinking Elses

by Bruce Johnson in CodeSOD

We've all seen it before. I dare say we've all been a party to it.

First, we look at a block of code that needs to be modified. Then we determine which criteria needs to be added to address the case that we've been tasked to implement. Next, we add the condition and walk away before the waft from the code smell reaches our nostrils. Over time, a monstrosity like the following arises from the depths. Not something that couldn't be greatly improved by some fava beans and a nice refactor. I'm sure the unit tests that cover your production code base will ensure that your refactoring was successful. Right? Right??

30 Comments - Last Comment @ 01:19

Do the Math

by Mark Bowytz in Error'd

"These car shades I found at Walmart were made especially for the American market," Bryan W. writes, "I mean just look - they work much better in Fahrenheit than in Celsius."

71 Comments - Last Comment @ 2014-10-16
View Article Archives »