Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I find it rather difficult to advise on this article and would suggest a different approach: Step back and describe the problem you're actually trying to solve. You seem to be stuck in "solution space", with some design decisions already made - but these might actually get in the way.

As an example, you write modules are intended as an abstraction of behaviours and scripts are generally the incarnation of these behaviours in the real life. I'd challenge that view and say that objects are the incarnations, and that you are (ab)using subclasses instead of different objects of the same class, each with their own attributes. Also, you seem to use scripts to store particular objects. All this might be justifiable, but I can't see how.

Also, the decision to be a fan of OO frameworks only when I will have the need to use all the features they provide seems questionable. You might fare better if you decide to embrace them as soon as they help to solve your problem. I am pretty sure that almost no one needs to use all the features of Perl itself, yet many of us are Perl fans, and quite happy with it.

So, perhaps the problem has occurred before. I don't recognize it. Chances are that some features of OO Perl frameworks have been created to solve your problem. Can you describe how you intend this to be used? Are users supposed to write their own modules, and how should they feed them to the system? Can you describe the problem without using the words "incarnation", "abstraction" and "design pattern"?


In reply to Re: Modules design pattern: abstraction vs incarnation (providing not so static data) by haj
in thread Modules design pattern: abstraction vs incarnation (providing not so static data) by Discipulus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found