Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: pack and unpack multiple arrays with one common repeat prefix

by kennethk (Abbot)
on Jun 15, 2017 at 22:22 UTC ( [id://1192902]=note: print w/replies, xml ) Need Help??


in reply to Re^2: pack and unpack multiple arrays with one common repeat prefix
in thread pack and unpack multiple arrays with one common repeat prefix

If you are using different algorithms in your coding than in your life, one of the two is sub-optimal. If you know a better way to do it, why are you wasting precious seconds you could be sitting under a tree?

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

  • Comment on Re^3: pack and unpack multiple arrays with one common repeat prefix

Replies are listed 'Best First'.
Re^4: pack and unpack multiple arrays with one common repeat prefix
by chacham (Prior) on Jun 15, 2017 at 22:43 UTC

    That is like saying that a computer should play chess the same way a human does.

    Humans make mistakes, forget, and have limited time to crunch numbers. So, we have methods to help us do things. Computers do not have these shortcomings, and thus can do things that we wish we could do. Also, there are patterns a computer can "see" that an unaided human cannot.

    Computers are not just there to implement human algorithms as if they were macros. They are game changers, and should be used as such. Not that everything you do without a computer should be thrown out. Keep what works best, but make sure you utilize the computer for its strengths, not just its speed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-10-08 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (44 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.