Why? I mean, I can see the argument for not using protected subs at all, but given that it's a requirement, and that the point of "protected" is that the class and its children (thus, inheritence is implied) can call it, what's the issue with that approach?
| [reply] |
Sure, if you have to use inheritance throughout your system and absolutely cannot use any other method of code reuse or polymorphic structure, obviously inheritance is the way to go. That's a little bit circular; this coding style makes inheritance necessary by forbidding the other approaches.
My point is that I think that's a silly, harmful assumption, nearly as bad as saying that your identifiers cannot use the letter e. isa and ref are code smells to me.
| [reply] [d/l] [select] |