Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Multiple CPAN distributions under the same git repository?

by jimpudar (Pilgrim)
on Nov 12, 2018 at 20:27 UTC ( [id://1225655]=note: print w/replies, xml ) Need Help??


in reply to Multiple CPAN distributions under the same git repository?

Honestly, having to make identical changes in multiple places is a code smell.

If you are adhering to the DRY (Don't Repeat Yourself) principle, you shouldn't need to do things like this.

Of course in the real world, this isn't always so easy to accomplish :)

Best,

Jim

πάντων χρημάτων μέτρον έστιν άνθρωπος.

  • Comment on Re: Multiple CPAN distributions under the same git repository?

Replies are listed 'Best First'.
Re^2: Multiple CPAN distributions under the same git repository?
by Dallaylaen (Chaplain) on Nov 13, 2018 at 09:14 UTC

    In my particular case (main module + many plugins), having no repetitive changes implies that (1) API is very stable, (2) extending the module requires little to no boilerplate, and (3) writing tests for the module requires little to no boilerplate.

    And having that level of design skills implies posting to p5p rather than SoPW :)

    EDIT: From Wikipedia:

    In computer programming, a code smell is any characteristic in the source code of a program that possibly indicates a deeper problem.

    And, yes, the repetition in plugins indicates a deeper problem with my code, which is: I cannot design a succinct, feature-rich, and testable module interface in one go. And while I'm solving that problem, I'd rather have my imperfect code nicely organized, which is why I'm asking...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found