Large Classes

Large Classes

Monday 27 November 2006 10:18:02 am - 1 reply

Author Message

Claudia Kosny

Wednesday 29 November 2006 1:28:19 pm

Hi Camilo

I think having one large class is better, although this might depend on your exact requirements. Here my reasons:
- The setup for creating an object of this class is easier, with several small classes you need make sure that if the user cancels the create/edit on the second partial object, the changes on the first partial object are undone as well.
- If you display an object you just need one fetch, with several partial object you need at least one more fetch operation.
- Searching is easier.
- You have less cache files (I think)

Claudia

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.