Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: use fields, underscores and subclasses

by dragonchild (Archbishop)
on Nov 23, 2008 at 00:12 UTC ( [id://725363]=note: print w/replies, xml ) Need Help??


in reply to use fields, underscores and subclasses

Perl doesn't do OO. Perl has features that allow people to build OO systems on top of Perl.

Don't use fields. Use Moose. It's a much saner way to do everything OO in Perl and gives you a gazillion other features as well.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: use fields, underscores and subclasses

Replies are listed 'Best First'.
Re^2: use fields, underscores and subclasses
by AZed (Monk) on Nov 23, 2008 at 18:21 UTC
    Does Moose still impose that nasty compile-time penalty? It's the main reason I've been avoiding it on small projects.
      naturally

      It has gotten a lot better recently, thanks to Devel::NYTProf and several dedicated testers/benchmarks/developers.

      And if Moose is still too slow, you might want to give Mouse a look.

      -stvn
      You have small projects that need to be so fast that a 1-2s compiletime penalty is the dealbreaker?

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

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

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

    No recent polls found