Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Seeking inside-out object implementations

by xdg (Monsignor)
on Dec 07, 2005 at 00:45 UTC ( [id://514691]=note: print w/replies, xml ) Need Help??


in reply to Re: Seeking inside-out object implementations
in thread Seeking inside-out object implementations

The obvious one: don't use a module.

My initial reaction to this snide remark was to dismiss it as yet another exercise in sarcasm. However, looking back at my post, I suppose I didn't make it clear that the purpose of the seminar is to teach the inside-out technique, and, particularly, its pros and cons. I also want to give an overview of the "gazillion" modules that are springing up, so people understand what each one brings or doesn't bring.

As to the gazillion modules, what's the alternative? Every programmer going out and making their own gazillion mistakes writing everything by hand? At least CPAN modules, flawed as they might be, have the potential to benefit from some degree of peer review, experience and bug reports. (c.f. the growing Class-Std bug list)

What I find slightly amazing is that none of the tech reviewers for PBP picked up on any of the potential design issues before Damian went out and declared inside-out objects as the a new best practice.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re^2: Seeking inside-out object implementations

Replies are listed 'Best First'.
Re^3: Seeking inside-out object implementations
by Perl Mouse (Chaplain) on Dec 07, 2005 at 01:21 UTC
    As to the gazillion modules, what's the alternative? Every programmer going out and making their own gazillion mistakes writing everything by hand?
    That's like saying everyone should take a cab into work, instead of driving yourself and create car accidents.

    We've already established that all the modules have their flaws (otherwise, we'd quickly agree what module to use). And frankly, inside-out objects are simple. Hardly more complicated than hash based objects.

    Give programmers a bit of credit.

    Perl --((8:>*
      That's like saying everyone should take a cab into work, instead of driving yourself

      That's an interesting way of selectively quoting what I said to shift the meaning. Perhaps you should have included my next sentence:

      At least CPAN modules, flawed as they might be, have the potential to benefit from some degree of peer review...

      Unlike cab drivers.

      -xdg

      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      And frankly, inside-out objects are simple. Hardly more complicated than hash based objects.

      If it wasn't for the DESTROY block issue I'd agree. However I've found it surprisingly easy to foul this up leading to memory leak issues that cause me more problems than the occasional development issue with encapsulation and typos.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found