in reply to Perl Monks += TMTOWTDI
This is how I think about it: it is a matter of taste,
much like choosing music. You make personal decisions
based on your own weighting factors. Here is an example
of a set of choices that someone might use.
How do you choose your music?
- Other listeners
- Reviews
- Artist
- Brian Setzer can do no wrong
- Publisher
- Barking Pumpkin can do no wrong
- What is on the radio
- What you found all by yourself
- Go to Backdoor Records in Cotati, California,
find interesting looking discs,
put them in the player and listen.
How do you choose your perl modules?
- Someone tells you
about them
- Reviews
- Magazine articles by Randall Schwartz
- PerlMonks module reviews
- Author
- Damian Conway can do no wrong
- Publisher
- O'Reilly can do no wrong (module in book)
- What is on PerlMonks
- PerlMonks
questions, answers, and commentary
- Browse CPAN
- Downloads, test
and evaluate the modules yourself
- Search results order is a good first guess
This is from
a
talk that I recently presented about perl.
It should work perfectly the first time! - toma
Re: Re: Perl Monks += TMTOWTDI
by Anonymous Monk on Apr 16, 2003 at 07:35 UTC
|
Damian is fallible like every else. O'Reilly has released several very bad books. Randal has made mistakes in articles. Search results don't tell much, especially for more complex queries. Perlmonks reviews are hardly ever in-depth, and tend to be regurgitating the API docs.
Trust nothing. Analyze the code for yourself.
| [reply] |
|
| [reply] |
|
| [reply] |
|
|
|
|
|
|
|
Well, I'm incredibly egotistical so I won't answer that. I will however say that using someone else's code, even if they are a far better programmer than you, creates several additional areas of concern. You have to ensure:
- The code is not intentionally flawed.
- The code is not trojanned in transit or due to server compromise
- The original programmers are at least as competent as you at the task at hand
- There are no licensing issues (including maintenance issues)
I left out unintentional bugs although I've often found (keyword: found) far fewer in my code :). A much larger problem (especially in Perl) is style. I can read my code far, far easier than most other people's. I'm not talking about indentation, and unimportant/easily fixable issues here, but larger (mildly subjective) design issues. Often I've found it quicker to write a module than to read it, understand it, and do a quality assessment.
However, your point is obviously a valid area of concern. To an extent it is the same issue that I'm using perl instead of writing my own language (rest assured, it is in my todo.list). You could even take it down to the level that I should be creating all hardware and software from scratch (unfortunately I'm not that good... yet). There must be a level of trust, or more accurately an acceptable risk threshold, when dealing with any technology. I'm just a little more paranoid than most.
There are other advantages to this approach as well. If I had always just used existing tools and taken the easy way I don't think I would know half the things I do now. I also occasionally come up with something that improves upon the existing. And as crazy as it might sound, I also enjoy writing what is often considered tedious code (XML parsers, template systems, drivers). It's sort of a "well I haven't written project x yet, might as well go ahead." Or more articulately, as Richard Feynman once said "What I cannot create, I do not understand."
So yeah, I'm just babbling on now, I intended this to be a two sentence response, really :). So point taken, but there are a bunch of other things to consider, and even if they don't outweigh your point, it clears out a couple bytes of my memory needed for reinventing stuff :).
| [reply] |
|
|
|
|
The music that you are willing to give a listen
might not follow a strict set of rules.
Code is analogous to music.
My idea is that you might have a favorite artist
or a favorite art critic,
and this is analogous to having
a favorite module author or module reviewer.
You might invest a few dollars to buy the newest
release from your favorite musician without
first listening to it.
This is analogous to spending a few hours
evaluating a module from your favorite
CPAN author without knowing why you need the module
or if it is any good.
It should work perfectly the first time! - toma
| [reply] |
|
|