Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: tutorials / examples to start using Moo (or Class::Tiny, or...?)

by gnosti (Chaplain)
on Jul 23, 2015 at 01:50 UTC ( [id://1135932]=note: print w/replies, xml ) Need Help??


in reply to tutorials / examples to start using Moo (or Class::Tiny, or...?)

Others have written that OO and modular programming are somewhat orthogonal. So, if modules will enable you to refactor and reuse your code as subroutines, that is the simplest path forward. OTOH, if you are using complex data structures, or families of data structures, OO does help by keeping the code for initializing these structures and methods for operating on them in one place.

If you haven't experienced how OO can help you organize your code, it is definitely worth learning, IMO. In that case, I find vanilla perl OO to be a good starting point, since you can see how it works more easily than with an OO framework. I started that way, then began using Object::Tiny to create accessors. In a new project, I would probably try Moo and friends.

  • Comment on Re: tutorials / examples to start using Moo (or Class::Tiny, or...?)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-18 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found