Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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".


Comment on Moose for "web 1.0" types
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 (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 :)

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2015-11-30 09:26 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls