On Wed, Jul 6, 2016 at 4:51 PM, Edward Leafe ed@leafe.com wrote:
On Jul 6, 2016, at 2:09 PM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
This tip below reminds me of that phrase years ago by Ed or Ted or somebody else that said "program to the interface, not the implementation."
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).