Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Using the strict module in object oriented programming

by phaylon (Curate)
on Jul 26, 2006 at 10:20 UTC ( [id://563744]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using the strict module in object oriented programming
in thread Using the strict module in object oriented programming

Sometimes there is too much flexibility.

Moose is built on Class::MOP, which implements a meta-object protocol. The MOP lays out a well-defined abstraction for the components of an object system and how they are supposed to behave and interact. That well-defined abstraction is what the Perl object system lacks, so Class::MOP builds one on top of the Perl object system and has it provide the API for things like Moose.
I respectfully but hardly disagree. Without the flexibility, we'd have one solution. Maybe it would be like Moose, maybe it would be another. But it certainly couldn't evolve in the way it does. So, for my part: Hooray for flexibility.

YMMV.

Ordinary morality is for ordinary people. -- Aleister Crowley
  • Comment on Re^3: Using the strict module in object oriented programming

Replies are listed 'Best First'.
Re^4: Using the strict module in object oriented programming
by xdg (Monsignor) on Jul 26, 2006 at 11:08 UTC
    Without the flexibility, we'd have one solution

    This is not about black or white. MOP doesn't eliminate flexibility, it just defines an interface around it.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Yes, but MOP based on a more abstract implementation is in my eyes more flexible than just having one MOP implementation. What I meant was that I'm comfortable with not being tied to that MOP system. It's much more enjoyable to use if that decision is up to you.

      Ordinary morality is for ordinary people. -- Aleister Crowley

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-23 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found