Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: module w/ object-oriented and functional interfaces: best practices?

by temporal (Pilgrim)
on Sep 21, 2012 at 22:02 UTC ( #994996=note: print w/ replies, xml ) Need Help??


in reply to module w/ object-oriented and functional interfaces: best practices?

Wow, great read BrowserUk.

Conversely, if a module/library lends itself better to a procedural interface, adding an pseud-OO interface also, doesn't add flexibility, it adds unnecessary complexity.

This is the situation that I am in. And running into that complexity while trying to kludge in the pseud-OO interface led me to creating this post! =)

You make some great points which hit surprisingly close to home for me. Particularly - avoiding those expensive recalculations over larger data sets when you want to perform multiple operations. Thank you, I learned a lot and now have some food for thought for implementing some tools I have in the works.

After having been warned, warded, and wizened by all the previous posts, tye, your solution sounds like the cleanest and easiest not to mention most maintainable way to implement what I want to do. Which is funny, because the first reply in my OP's related link (Module provides both of functional interface and object-oriented one) argues against doing (sorta-kinda) what you describe!

Anyway monks, signing off for the weekend and thanks again for all of you donating a little enlightenment.

Strange things are afoot at the Circle-K.


Comment on Re: module w/ object-oriented and functional interfaces: best practices?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-08-23 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (175 votes), past polls