Recent Articles

12 Feb 2016

The Errors Mean that it's Working

by Mark Bowytz in Error'd on 2016-02-12

"After all, it's the courage to install that counts," writes Aaron

18 Comments - Last Comment @ 10:41
11 Feb 2016

Unselected

by Erik Gern in CodeSOD on 2016-02-11

In the movie Man of the Year, Robin Williams plays a Jon Stewart-esque comedian who runs for President of the United States. He wins the general election due to a programming glitch in some e-ballot machines deployed nationwide.

In Belgium, as Adrien F. can attest, this very nearly happened.

48 Comments - Last Comment @ 22:09
10 Feb 2016
09 Feb 2016

Keeping Regular

by Remy Porter in CodeSOD on 2016-02-09

Regular expressions can create new problems. Like an industrial drill, they’re extremely powerful- and potentially destructive. They’re expensive, they’re cryptic, but can be extremely concise.

For example, Jessica is reimplementing some C# code written by another developer. This developer was never interested in being concise, and instead favored being “clever”. For example, this developer had an array of strings, and needed to remove any non-word-characters from each string.

85 Comments - Last Comment @ 2016-02-12
08 Feb 2016
05 Feb 2016

An Unusually Childish Debate

by Mark Bowytz in Error'd on 2016-02-05

"Hilarity ensued when, during a recent political debate, the subtitles used by the Swedish state television came, not from authorized subtitlers of the debate, but rather the neighboring children's channel," Jonas writes.

33 Comments - Last Comment @ 2016-02-12
04 Feb 2016

Log of String

by Jane Bailey in CodeSOD on 2016-02-04

Zrywka drewna 776

The English language contains words with multiple and often contradictory meanings. A dress, for example, is only one of many items you could put on while dressing yourself. Meanwhile, if you want to wear pants instead, you should avoid pantsing yourself, as that would be counter-productive.

86 Comments - Last Comment @ 00:12
03 Feb 2016

The Abstractions Conference: Pittsburgh

by Remy Porter in Announcements on 2016-02-03

Back when we were setting up The Daily WTF: Live, I gave a shout-out to the Pittsburgh tech community group, Code & Supply. They’ve been a great way to network with local developers, dev-opsers, designers, and more, ranging from the seasoned vets to those just cutting their teeth on IT. I’m a huge fan of their events, and I only wish I could make it to more of them.

15 Comments - Last Comment @ 2016-02-03
03 Feb 2016
02 Feb 2016

High Performance Memory Allocation

by Remy Porter in CodeSOD on 2016-02-02

Jamie has a co-worker who subscribes to the “malloc is slow” school of thought. Now, for most programs, it’s fine, but Jamie works on a high-performance computing system operating in a massively parallel configuration, so there are portions of their application where that philosophy is completely valid.

In this case, however, the code Jamie’s co-worker wrote is in their message handling layer. There’s really no reason to pool buffers there, as the performance gain is practically non-existent based on the frequency of buffer allocation. That doesn’t change Jamie’s co-worker’s opinion though- malloc is slow.

73 Comments - Last Comment @ 2016-02-09
01 Feb 2016