Recent Representative Line

A single line of code from a large application that somehow manages to provide an almost endless insight into the pain that its maintainers face each day.

Dec 2014

Classic WTF - One Bad Ternary Operator Deserves Another

by in Representative Line on

Last day of 2014 means it's time to check out another year-end "Best Of WTF" article from earlier this year. Enjoy!


Personally, in all my years of application development, I have had zero use of ternary operators.


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';