|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Class automators should be standardby hardburn (Abbot) |
| on Jan 13, 2004 at 17:23 UTC ( [id://321127]=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.
No. While I'm not going to say using MethodMaker is always bad, it would encourage those new to OOP to design sloppy objects (such as accessors and mutators on every attribute). Further, it only teaches you one aspect of Perl OOP. There are already too many people who limit themselves to bless alone, and with MethodMaker, they wouldn't even learn that much. If you happen to like MethodMaker, know how bless works already, and already understand why you should limit the use of accessors/mutators, then go ahead and use MethodMaker. I just don't want coders encouraged into bad practices too soon. There's quite enough of that as it is. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||