|
Posted by Chung Leong on 09/06/05 21:52
Markus Ernst wrote:
> Anyway my goal is improving performance at the front end (implementing PEAR
> Cache did a lot there), and I am not sure if separating the admin functions
> is actually worth the effort. I would highly appreciate some quick comments
> about this:
>
> Existing structure: Class trees based on common base classes, such as:
>
> - class common_functions
> - class entity extends common_functions
>
> - class rubric extends entity
> - class page extends rubric
>
> - class gallery extends entity
>
> - class picture extends entity
I'm an advocate for keeping things simple and obvious. Unless there's a
good reason to use inheritance, I generally avoid it. It's easier to
think that a book is a book, than a book being an extension of some
generalized, abstract object.
Navigation:
[Reply to this message]
|