![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Perl modules hierarchy and compositionby tusker (Novice) |
on Jan 06, 2017 at 10:57 UTC ( #1179070=perlquestion: print w/replies, xml ) | Need Help?? |
tusker has asked for the wisdom of the Perl Monks concerning the following question: Reading more and more about Perl, I'm having doubts about how I organized my modules on my current project. I have a main namespace - let's call it "MyProject". I have objects from class A that are composed of objects of class B, C and D. Classes B, C and D are used by class A only, so it made sense to me to organize the modules as follows:
But I'm starting to think that it will make sense to me only if I ever dare to relase parts of my project in CPAN. I think people will believe that B, C and D are inheriting A and not composing it. So: shall I reorganize my modules this way?
Or maybe indicate that B, C and D are parts of A by appending their names?
My question: What is the currently considered a best practices for module organization and naming when it comes to composition?
Back to
Seekers of Perl Wisdom
|
|