Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Moose for "web 1.0" types

by ribasushi (Monk)
on Sep 02, 2009 at 20:00 UTC ( #793015=perlquestion: print w/ replies, xml ) Need Help??
ribasushi has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks,

Here is a (possibly frequently asked) question about this Moose thingy: Did someone ever write a "before moose/after moose" cheat-sheet-type list?

Background - I am very well versed in all the old-school perl OO techniques (including the horrific inside-out objects), I understand multiple inheritance and what MRO is and how e.g. C3 works. What puts me off in the Moose tutorials is all the CS-y terminology (role, trait, decoration, etc etc etc). Thus I am looking for some sort of map that can tie my existing knowledge with the "new way of doing things".

Cheers

Comment on Moose for "web 1.0" types
Re: Moose for "web 1.0" types
by ikegami (Pope) on Sep 02, 2009 at 20:17 UTC
      Role and traits are the same thing.

      For some definition of "traits" that is. To clarify, Traits were the original idea developed by the Smalltalk people and which I implemented in Class::Trait. In Moose however we use trait differently, it has come to mean "role applied to an instance" and sometime specifically to a meta-level instance.

      Roles weren't introduced by Moose

      Exactly they were one of the many features we borrowed from Perl 6 :)

      -stvn
Re: Moose for "web 1.0" types
by astroboy (Chaplain) on Sep 02, 2009 at 21:57 UTC
    For an intro check out Moose Unsweetened. It compares the Moose and Pre-Moose way of doing basic Perl OO. It doesn't cover roles etc, but the Manual and Cookbooks are pretty thorough
Re: Moose for "web 1.0" types
by bruno (Friar) on Sep 02, 2009 at 22:18 UTC
    In my opinion, the best way to go for a comprehensive yet friendly discussion of how to do things the Moose way is Dave Rolsky's Moose::Manual.

Re: Moose for "web 1.0" types
by stvn (Monsignor) on Sep 03, 2009 at 14:11 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://793015]
Approved by derby
Front-paged by derby
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-09-19 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls