Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Ternary vs. Sort vs. Max

by GrandFather (Saint)
on Aug 10, 2015 at 09:30 UTC ( #1137986=note: print w/replies, xml ) Need Help??


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 (Pope) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1137986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2021-01-17 13:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?