Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: OOP: How to (not) lose Encapsulation

by sundialsvc4 (Abbot)
on May 13, 2015 at 13:50 UTC ( [id://1126559]=note: print w/replies, xml ) Need Help??


in reply to Re^3: OOP: How to (not) lose Encapsulation
in thread OOP: How to (not) lose Encapsulation

I just enjoy what works, in a particular application.   (And all applications are different.)   It so happens that I like to use things which help me put “all of the relevant code” into one place, and to “hide” things so that the compiler will detect situations where another piece of code (which I never would have found, among hundreds of source-code modules that I didn’t write) might interfere with another, or have a dependency on it, or introduce unwanted side-effects upon it.

Now, the Perl language is weak in that regard ... because of the legacy design of the language and because Moo/Moose are really “just puddings” that have been subsequently grafted onto it.   But that can’t be helped and I’ll take what I can get.   Gladly.

I suppose that I “lack dogma” because, most of the time, I am dealing with troubled, legacy systems which I did not write and for which the original programmers are long-gone.   I’m trying to make improvements to a system that is chock-full of design problems which caused the original team to split the coop.   OOP techniques work well for me, then.   I am often trying to consolidate maybe-hundreds of redundant, sometimes not-quite identical, pieces of code that are scattered all over Casablanca, and to put them into just one place.

  • Comment on Re^4: OOP: How to (not) lose Encapsulation

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-18 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found