http://qs321.pair.com?node_id=1137986


in reply to Ternary vs. Sort vs. Max

The max version has the huge advantage that it actually says what the intent of the code is. The other variants require at least some pattern recognition or, worse, some thought to interpret.

Premature optimization is the root of all job security