rlb3 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
In my quest to become a better programmer I've been studying Design Patterns. In one of the programs I've been refactoring has many classes.
use Stu::Account; use Stu::NameChange; use Stu::Addresses; use Stu::Classes; use Stu::Email; use Stu::DirInfo;
The use of so many ‘use’ statement seems like it will come back to haunt me one day. Is this is telling me to use the Factory pattern or at least implement plugins? And if it is, is the use of so many ‘use’ statements always a sign. If not, what are the signs?
Thanks,
Updated title as suggested by demerphq.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Are many use statements a code smell?
by demerphq (Chancellor) on Jun 12, 2005 at 13:47 UTC | |
Re: Are many use statements a code smell?
by borisz (Canon) on Jun 12, 2005 at 13:42 UTC | |
by crenz (Priest) on Jun 18, 2005 at 00:24 UTC | |
Re: Are many use statements a code smell?
by thcsoft (Monk) on Jun 12, 2005 at 13:42 UTC | |
Re: Are many use statements a code smell?
by sh1tn (Priest) on Jun 12, 2005 at 13:41 UTC | |
Re: Are many use statements a code smell?
by ruoso (Curate) on Jun 13, 2005 at 10:21 UTC |