Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

For me, the major advantage of base.pm was that it originally would catch typos for you. Since use base qw( Food::Barf ); would die if there was no Food/Barf.pm to load (because the module's name is actually Foo::Bar).

But Schwern's careless featuritis broke that most important feature and broke it so badly that Schwern basically abandoned the module as unfixable when he finally noticed his mistake.

I think the breakage is fairly easy to fix so I'm quite disappointed that Schwern not only broke a nice module but also chose to not fix it. Not that I'd go back to using the module any time soon after it was fixed, since there would still be too many broken versions of it in circulation.

Luckily this is no big loss for me since it only saves one line of typing, the typos can still be caught by basic unit testing, and I hardly ever use inheritance in Perl anyway.

Update: I have a distinct memory of looking at the source code to base.pm when I first started using it and finding something extremely simple. Looking around now I suspect that this is a false memory and base.pm may have been broken in some of these ways all along. Mea culpa. It wouldn't be the first time the "obvious design requirement" (to me) was only in my head.

- tye        


In reply to Re: base.pm vs @ISA (typos) by tye
in thread base.pm vs @ISA by jettero

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-06-27 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?