in reply to Re^5: regex transforms of object attributes
in thread regex transforms of object attributes

Howdy!

...when it gets reimplemented as a value stored in a database somewhere, or stored remotely, such that you access it via SOAP or HTTP or carrier pigeon...or as a value in a hash or array somewhere. But you don't have a need to know...

A procedural interface, whether a get and set pair, or a polymorphic accesser/mutator, provides a way to obtain and change the value while keeping your actions decoupled from the specific storage mechanism.

yours,
Michael
  • Comment on Re^6: regex transforms of object attributes

Replies are listed 'Best First'.
Re^7: regex transforms of object attributes
by Roy Johnson (Monsignor) on Jun 21, 2004 at 22:40 UTC
    It doesn't matter how it's stored. If the interface is set-a-scalar, get-a-scalar, you can do it with a tied scalar. See my meditation on the subject.

    We're not really tightening our belts, it just feels that way because we're getting fatter.