Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Stop reinventing the wheel! (was Re: Directory Recursion)

by kschwab (Vicar)
on Jan 05, 2002 at 21:41 UTC ( [id://136559]=note: print w/replies, xml ) Need Help??


in reply to Stop reinventing the wheel! (was Re: Directory Recursion)
in thread Directory Recursion

I think the author made it clear that this wasn't a File::Find replacement here:

There is a very notable module that helps with this task, and that is File::Find. While this is an incredibly useful module, this tutorial is designed to give you a basic understanding of recursion in Perl, and should hopefully be beneficial to you for more than just file and directory processing (though that will be the focus).

He seems to be pitching this as a learning exercise. Your node pointing out some bugs adds to the learning experience.

Perhaps it should be made more clear that it isn't production usable code, but...

Lighten up. ( /me braces for the -- onslaught :)

Update: I agree with merlyn in general, but I think a gentle suggestion that the author update the node with mention of the bugs and fixes would work just fine. Perhaps it would be even more helpful for a beginner to learn from someone else's common mistakes ? After all, this is a forum.

Replies are listed 'Best First'.
Re: Re: Stop reinventing the wheel! (was Re: Directory Recursion)
by merlyn (Sage) on Jan 05, 2002 at 21:45 UTC
    The problem is that I consider it unethical to teach something without knowing it well enough not to introduce well-known bugs. It's just bad for the community at large to propogate bad memes under the banner of "helping", because it doesn't help, it hurts.

    It's the equivalent to spreading rumors that could harm someone else's reputation without first verifying them from an independent source, which I also consider to be unethical. Why do you think newspapers have such strict rules on "fact checking"?

    -- Randal L. Schwartz, Perl hacker


    update: in response to
    Update: I agree with merlyn in general, but I think a gentle suggestion that the author update the node with mention of the bugs and fixes would work just fine. Perhaps it would be even more helpful for a beginner to learn from someone else's common mistakes ? After all, this is a forum.
    I would have no problem if the original node had been posted "in quotes", as in "I'm thinking of writing a tutorial, can someone review the following draft before I publish it...". But that wasn't done. It was posted as a done deal, and thus pushed my hotbutton.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-19 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found