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.

Aug 2018

Tern This Statement Around and Go Home

by in Representative Line on

When looking for representative lines, ternaries are almost easy mode. While there’s nothing wrong with a good ternary expression, they have a bad reputation because they can quickly drift out towards “utterly unreadable”.

Or, sometimes, they can drift towards “incredibly stupid”. This anonymous submission is a pretty brazen example of the latter:


Constantly True

by in Representative Line on

An anonymous reader had something to share.

"I came across this code in a 13,000 line file called Constants.cs."