"be consistent" | |
PerlMonks |
Re: Global Super Class (equivalent of java.lang.Object)by InfiniteLoop (Hermit) |
on Sep 26, 2006 at 15:30 UTC ( [id://574961]=note: print w/replies, xml ) | Need Help?? |
Greetings,
Generally, over a period of time, you tend to abuse the root class. In my current project I see that we tend to "use" many modules, in the root class, that are not neccessary in most of the places, thereby increasing the memory.
Although you could create a single root class (like Objective-C's NSObject), try to have specialized root classes (maybe a root class for all your UI's and one for your model classes) which would inherit from your single root class.
In Section
Seekers of Perl Wisdom
|
|