Remy Porter

Computers were a mistake, which is why I'm trying to shoot them into space. Editor-in-Chief for TDWTF.

Dec 2014

Hashing the Ruby Way

by in CodeSOD on

Ruby praises itself as the language that “makes programmers happy”. It does its best to be expressive and encourage a declarative style of programming.

Oxygen480-actions-irc-close-channel


JSON at Crystal Lake

by in CodeSOD on

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:


Polynomial Optimization

by in CodeSOD on

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)!”


Nasal String Length

by in Representative Line on

Dariusz isn’t sure what this line of code was meant to do. At his best guess, it was supposed to find an improperly terminated C string and add a null terminator character after it:

buf[strlen(buf)] = '\0';