Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: At what level of structural complexity is Moose a win-win?

by BrowserUk (Pope)
on Sep 29, 2010 at 16:09 UTC ( #862643=note: print w/replies, xml ) Need Help??


in reply to Re: At what level of structural complexity is Moose a win-win?
in thread At what level of structural complexity is Moose a win-win?

Remember that associating a distinct identity with a data structure adds clarity and helps reduce bugs.

Using an object:

use Currency; my $amt = new Currency;

And not:

my $amt = [0,0];

And two screens down in the code:

my $oldAmt = $amt;

But which file are you in?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862643]
help
Chatterbox?
Discipulus 3 earthquake between 5.1 and 5.3.. Closed the subway in roma and many schools evacuated: the school of my little daugther was evacuated.. but nobody called us..

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-01-18 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.