Post Profile

CodeSOD: Not the Shortest Shortener

Going through TDWTF inbox, I’ve built a sort of mental taxonomy of bad code. For example, there’s the kingdom of Tempus Malum: home-brew date manipulation functions, a rather profligate branch of bad code. Or the Order of Linguan Ignorans- bad code developed out of a complete ignorance of the available language features. There’s another category that I always consider a treat.
read more


Related Posts

CodeSOD: Unstandard Lib

Technology / Programming : The Daily WTF

One of the hallmarks of “bad code” is when someone reinvents the wheel. In many Code SODs, we show code that could be replaced with a one-line call to a built in, standard library. That’s one of the the advantages to a high-level la...

Coded Smorgasbord: Finding a Path

Technology / Programming : The Daily WTF

Readers of TDWTF know all too well that dates are hard. Strings are also hard. You know what else is hard? File paths. Like dates, and strings, most languages these days have libraries to simplify parsing filepaths. For example, in ...

Coded Smorgasbord: Truth or Sim

Technology / Programming : The Daily WTF

A huge number of the bad code submitted to TDWTF is related to dates. This isn’t all that surprising- dates are very complex data structures with a vast number of possible representations and huge cultural variations. I have no idea...

CodeSOD: All the Pieces

Technology / Programming : The Daily WTF

So much bad code arises from the fact that people don’t know that there’s a better way. If a developer doesn’t know about “split” and “join” functions, they might write a cumbersome for loop to manipulate a string. If they don’t kno...

CodeSOD: The Most Pessimistic Search

Technology / Programming : The Daily WTF

Sometimes here at TDWTF, we get code snippets that are immediately obvious in their wrongness. But sometimes, the code only looks mildly inefficient, and it's up to the submitter to let us know how bad it actually is. Take the follo...


Copyright © 2016 Regator, LLC