|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Global Super Class (equivalent of java.lang.Object)by InfiniteLoop (Hermit) |
| on Sep 26, 2006 at 11:30 UTC ( [id://574961]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||