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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl modules hierarchy and composition
by kcott (Archbishop) on Jan 06, 2017 at 16:50 UTC | |
by Anonymous Monk on Jan 07, 2017 at 10:16 UTC | |
|
Re: Perl modules hierarchy and composition
by BillKSmith (Monsignor) on Jan 06, 2017 at 16:07 UTC | |
|
Re: Perl modules hierarchy and composition
by hippo (Archbishop) on Jan 06, 2017 at 11:20 UTC | |
by tusker (Novice) on Jan 06, 2017 at 11:39 UTC | |
|
Re: Perl modules hierarchy and composition
by choroba (Cardinal) on Jan 09, 2017 at 10:25 UTC | |
by tusker (Novice) on Jan 16, 2017 at 09:29 UTC |