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

Object framework for a *::Tiny module

by zby (Vicar)
on May 19, 2010 at 18:43 UTC ( #840760=perlquestion: print w/ replies, xml ) Need Help??
zby has asked for the wisdom of the Perl Monks concerning the following question:

I know there can never be an ultimate and objective answer for this question - but at least I hope to learn what is the popular choice here. I cannot decide myself what to choose for WebNano so please help me. The important point is that I try to subscribe to the ::Tiny way of doing things with this module so this question is really a poll aimed at people that care for these kind of modules.

Right now I am hesitating between Any::Moose and Class::XSAccessors with the following pros and cons.

Pro Any::Moose

  1. Possibly no XS
  2. Can mean Moose for those that like to use Moose extended features

Pro Class::XSAccessors

  1. Very fast
  2. Small
  3. With MooseX::NonMoose can also be extended to Moose with no hassle at all
  4. Used by Alias
What do you think?

Comment on Object framework for a *::Tiny module
Re: Object framework for a *::Tiny module
by ctilmes (Priest) on May 19, 2010 at 21:02 UTC
    Object::Simple because it is, well, simple. It fits in well with the ::Tiny model you are looking for.
Re: Object framework for a *::Tiny module
by DrHyde (Prior) on May 20, 2010 at 10:07 UTC
    If you want to be ::Tiny, you shouldn't use either of 'em. See http://www.nntp.perl.org/group/perl.datetime/2007/01/msg6584.html.
      Thanks - that was informative. But I think I cannot afford this level of ::Tiny, it's more in the direction of ::Tiny as much as I can, but not really entering the competition :) For my defence Template::Tiny is neither completely dependencies free.
Re: Object framework for a *::Tiny module
by BioLion (Curate) on May 20, 2010 at 11:47 UTC

    This is probably a naive question, but does Tiny (maximal code usage density?) bear any relation to Lite (minimal memory load?)? Does one come at the expense of the other?

    I only ask because generally I work to Lite principals, because I am usually memory limited rather than processor limited, however my code usually ends up pretty minimal too, so i am just wondering if this is just me, or whether the two themes are related?

    I should add that I don't check my code usage usually, and though I try to pack in functionality, I am aware that small doesn't always equal beautiful...

    Just a something something...
      Interesting question - I would like to see some discussion about it between the more knowledgeable than me :) Maybe you could ask that question at Alias's blog?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://840760]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2015-07-03 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls