J
John Carter
Public inheritance _is_ substitutability. (Liskov Substitution Principle)
Don't inherit to reuse code, inherit to be reused by existing code that
already uses the base class.
I believe this is utterly applicable to Ruby code.
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : (e-mail address removed)
New Zealand
Carter's Clarification of Murphy's Law.
"Things only ever go right so that they may go more spectacularly wrong later."
From this principle, all of life and physics may be deduced.
Don't inherit to reuse code, inherit to be reused by existing code that
already uses the base class.
I believe this is utterly applicable to Ruby code.
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : (e-mail address removed)
New Zealand
Carter's Clarification of Murphy's Law.
"Things only ever go right so that they may go more spectacularly wrong later."
From this principle, all of life and physics may be deduced.