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 2010

Boolean Illogic

by in Representative Line on

One of the great things about Boolean logic is its simplicity. At the most basic level, there's simply TRUE and FALSE with AND, OR, and NOT. It takes a lot of work to overcomplicate such a simple system, yet "certain" developers seem to find such over-complication second nature. Take E.H.'s colleague, for example.

His impressive use of interesting semantic choices, redundant equality checks, and integer mixing make every line of code seem like a puzzle to solve. Take this line, for example.