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.
In reply to Are many use statements a code smell? by rlb3
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |