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

Replies are listed 'Best First'.
Re^2: Ternary vs. Sort vs. Max
by BrowserUk (Patriarch) on Aug 10, 2015 at 10:26 UTC
    worse, some thought

    Dog forbid that programmers should expend some thought.

      The wetware also only has a certain capacity, why waste it on something that can easily be made cheaper to process?

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.