Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: guidance on naming my first module for CPAN

by eyepopslikeamosquito (Archbishop)
on Jan 24, 2021 at 00:27 UTC ( [id://11127352]=note: print w/replies, xml ) Need Help??


in reply to guidance on naming my first module for CPAN

Though I quite like davido's later suggestion of Data::QuickMemoPlus::Extract, I bring your attention to a general piece of naming advice from Writing Solid CPAN Modules, namely that Perl Best Practices, in the item "Use grammatical templates when forming identifiers", recommends a module naming template of:

Abstract_noun Abstract_noun::Adjective Abstract_noun::Adjective1::Adjective2
For example:
package Disk; package Disk::Audio; package Disk::DVD; package Disk::DVD::Rewritable

Based on that advice -- since "extract" is a verb (not an adjective) -- perhaps extract should be a method name in module Data::QuickMemoPlus.

Update: Given that Extract is a verb (or could be a noun depending on context), Extractor a noun, and Extractable an adjective, you could play around with names like:

Data::Extractor::QuickMemoPlus Data::Extractable::QuickMemoPlus Data::QuickMemoPlus::Extractor
Further update: ... I now prefer salva's suggestion: Data::QuickMemoPlus::Reader

Log In?
Username:
Password:

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

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

    No recent polls found