On 2016-07-06 17:01, Ted Roche wrote:
On Wed, Jul 6, 2016 at 4:51 PM, Edward Leafe ed@leafe.com wrote:
I know I've said it, and I know Ted's said it, and so have many others. It is excellent advice.
'Tis. I'm pretty sure I learned it from Steven Black, who 'got' OOP long before I did.
He, in turn, is likely to have picked it up from Eric Gamma, of the Gang of Four:
http://www.artima.com/lejava/articles/designprinciples.html
It's a key idea behind object orientation: don't tell objects what code to run, send a message to them telling them what result you're after, and leave the implementation to the object (information hiding).
One of the great benefits--as I used to preach at Central PA VFP Users Group in my OOP sessions--was that the code was easily portable.