Forums / Developer / Large Classes / Comment47380
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