in reply to Re: To use or not to use OO Perl
in thread To use or not to use OO Perl
Code-reuse is not really something that is unique to object oriented development, and it's a shame that people think OO invented code-reuse. It did not. In the wrong hands, OO subclassing actually allows for reuse-avoidance, or even copy-and-paste development in a politically correct format. Furthermore, it is a shame that the philosophy-of-uber-inheritance is so tightly coupled with OO thought that most OO programs instantly grow a tremendous class-hierachy. This too, need not be the case.
Anyhow, OO is fine -- but don't think it's about reuse or maintainability or massive inheritance hierachies or anything like that. It's mostly about state and clean interfaces -- or, at least -- that's how it SHOULD be. The number of real world problems correctly modelled by massive inheritance trees are few and far between.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: To use or not to use OO Perl
by FoxtrotUniform (Prior) on Oct 25, 2004 at 18:27 UTC | |
by perlcapt (Pilgrim) on Oct 26, 2004 at 02:34 UTC | |
Re^3: To use or not to use OO Perl
by kutsu (Priest) on Oct 25, 2004 at 17:55 UTC |