Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: use of modules in special cases

by Anonymous Monk
on Dec 23, 2019 at 05:12 UTC ( #11110531=note: print w/replies, xml ) Need Help??


in reply to use of modules in special cases

Each module should be concerned with only its own actual needs not its implementation at the then-present time. If A needs the functionality of B, B1, and B2, then "superficially" you should include all three ... while, perhaps, "idly wondering why this is so." What, exactly, is it about the present concept of "module A" that makes it simultaneously need not only knowledge of two subclasses, but also ("class-busting ...") knowledge of the parent class from which both of the other two were derived? "This smells bad..."

Replies are listed 'Best First'.
Re^2: use of modules in special cases
by soonix (Canon) on Dec 23, 2019 at 11:49 UTC
    "This smells bad..."
    Hmm... your writing style smells somehow, that may be the reason for some downvote. OTOH, what you say here, sounds mostly OK. On the third hand, all of it has already been said...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11110531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2020-05-30 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?