http://www.perlmonks.org?node_id=793015

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

Replies are listed 'Best First'.
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 ikegami (Patriarch) 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 stvn (Monsignor) on Sep 03, 2009 at 14:11 UTC