Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Better Inside-Out Objects :)

by Ovid (Cardinal)
on Oct 07, 2006 at 16:24 UTC ( #576865=note: print w/replies, xml ) Need Help??

in reply to Re: Better Inside-Out Objects :)
in thread Better Inside-Out Objects :)

That coding guideline is the problem I have faced quite a bit. Working with teams of developers who don't appreciate the merits of encapsulation sometimes means adopting a different strategy. As a result, I've reluctantly concluded the sometimes one has no choice but to try a different way. Additionally, I've found myself violating encapsulation at times when it's innapropriate (I know some will disagree, but derived classes shouldn't be looking at their parent's privates).

It's been pointed out that this strategy is essentially "use strict 'encapsulation'" and frankly, I'm happy with that as it solves the problem I wanted solved. Plus, when you're ready to move into production, if it's done properly, you can remove the encapsulation and everything still works (or you can leave it in if performance is not a problem).


New address of my CGI Course.

Replies are listed 'Best First'.
Re^3: Better Inside-Out Objects :)
by dws (Chancellor) on Oct 07, 2006 at 16:32 UTC

    Working with teams of developers who don't appreciate ...

    That gets to the core of one of the problems I'm having with Inside-Out Objects. At one level, they're an attempt to apply a technical solution to a people problem. Sometimes that works, but other times, it just adds weight to the burden the project has to bear.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2020-08-07 09:13 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (43 votes). Check out past polls.