Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: If I found the source code for the Universe, the first thing I'd do:

by perldigious (Priest)
on Nov 01, 2016 at 18:02 UTC ( #1175075=note: print w/replies, xml ) Need Help??


in reply to Re^3: If I found the source code for the Universe, the first thing I'd do:
in thread If I found the source code for the Universe, the first thing I'd do:

I firmly believe that if I knew back then, what I know now, the money would have taken care of itself.

I'd be foolish to disagree, but I think life would be so much simpler if:

my $goal = "what is to be accomplished?"; my @tasks = qw( all the necessary steps to get there ); if ( absolutely_necessary($goal) ) { do work(@tasks) or die "$!, but the rest of us forge on"; } elsif ( want_to_accomplish($goal) ) { do work(@tasks); }

Could be reduced to:

my $goal = "what is to be accomplished?"; my @tasks = qw( all the necessary steps to get there ); do work(@tasks) if ( want_to_accomplish($goal) );

Everybody writes their own sub work and sub want_to_accomplish of course. I suppose even sub absolutely_necessary is subjective in part, but there is apt to be a great deal of commonality there. Besides, isn't completely eliminating it a nice thought? The disappearance of the or die is a nice (or possibly horrifying?) thought too. :-)

Just another Perl hooker - will code for food

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2022-08-08 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?