Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Can I please have *simple* modules?

by brian_d_foy (Abbot)
on Nov 23, 2005 at 07:19 UTC ( #511019=note: print w/ replies, xml ) Need Help??


in reply to Can I please have *simple* modules?

I think you should write the general module that solves the task with a simple interface. Some of the modules you have mentioned (in this thread and others) make assumptions about the class implementation or other design details.

Your pain takes up two of chromatic's "Seven Sins of OO Programming" which appears in the next The Perl Review (and maybe in his talk slides if they are around.

As a PAUSE admin I don't mind Class::* pollution. In training and consulting I tell people to ignore that namespace since so much of it trivial code with much better ways to do things, and the ones that aren't are overly complicated that force you into a corner.

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review


Comment on Re: Can I please have *simple* modules?
Re^2: Can I please have *simple* modules?
by Ovid (Cardinal) on Nov 23, 2005 at 07:35 UTC

    I've seen that talk. It was a good one. I look forward to the article.

    And while you as a PAUSE admin might not mind the Class:: namespace pollution, it was hell for me as a consumer to have to wade through all of them just to find out that what I needed wasn't there :)

    Cheers,
    Ovid

    New address of my CGI Course.

      As a consumer, it's already hell. You'd be adding a grain of sand to a beach. :)

      The only way to get rid of the bad interfaces and unmaintained modules is to upload good interfaces that somebody will maintain. That the space is cluttered with crap shouldn't keep out the good stuff. Once you upload, I can say "Don't worry about remembering the name, just use the one Ovid wrote." :)

      --
      brian d foy <brian@stonehenge.com>
      Subscribe to The Perl Review
        I agree, the pollution isn't really an issue at this stage. I don't really bother browsing CPAN at all. If I need a module for a specific task, I simply ask other people for recommendations. The cream does rise to the top; a good example is with date modules. A couple of years ago, there was a huge slew of them, all with various pros and cons, and most with some issues. Now, I wouldn't really think of using or recommending anything other than DateTime - it's the DBI of date modules.

        If there are major issues with existing modules, then I don't think people can complain if you release another one. Especially if you can't get the existing modules patched, and you put a note in the POD saying something like "Why another XXXX module?" and clearly lay out your reasons for re-inventing the wheel.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2014-10-25 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls