On Wed, 9 May 2007, Peter Karman wrote:

* subclass subclass subclass

My experience tells me that lots of subclassing is a bad smell. Delegation is often simpler and less fraught with possibility for name conflicts.

Perl's inheritance mechanism is particularly egregious, of course. SUPER is broken, and without private methods or attributes of any sort, it's really easy to step on your parent's internals and break things.

* a couple levels of indirection can increase re-usability immensely

"All problems in computer science can be solved by another level of indirection" (Butler Lampson)

... except the problem of having too many levels of indirection.


Which no doubt you've all heard before, but it's worth remembering.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to