It's not easy to write a standard object model that conceptually scales to infinity. I try it about once a year anyway. Each attempt starts with a small set of rules, but their corollaries invariably reach a point where complex applications can't be written. Check out my graveyard of past attempts to see for yourself.

This year's try started off with more modest goals. That didn't prevent the first two attempts from veering off into WTF?! Land. Luckily the third try's taking much longer to go there.

You might like this one. It almost totally abstracts POE::Kernel and POE::Session behind what's so far a small class library. To be sure, its size is a function of its incompleteness rather than its tidiness, but I think it's one of my best attempts to date.

And you'll be happy about its calling convention, which is hash-based rather than using Perl's standard @_ array for parameters. You may not be happy with the choice of parameter (and other) names, but I'm open to suggestions. Keep in mind: This is prototypical code, so it's all subject to change as better ideas come up.


In reply to Re^2: Why are people not using POE? by rcaputo
in thread Why are people not using POE? by johnnywang

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.