Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Yahoo Currency Exchange Interface

by merlyn (Sage)
on Dec 14, 2001 at 01:40 UTC ( #131776=note: print w/replies, xml ) Need Help??

in reply to Yahoo Currency Exchange Interface

And you eschewed Finance::Currency::Convert::Yahoo because... ?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Yahoo Currency Exchange Interface
by cacharbe (Curate) on Dec 14, 2001 at 01:49 UTC
    Because I had already done 85% of the work before in the stock application, which didn't use the Finance::X because of earlier limitations to installing new modules (which have since been overcome), I wanted to see if the server would handle the Currency information as well, and I didn't think it necessary to learn how to use a new module for an hour's worth of work.

    So I guess the answers are:

    • because I could
    • I wanted to
    • the sake of knowledge.

    Is this somehow wrong?


      Is this somehow wrong?
      I'd qualify it as a waste of effort.

      Use the CPAN.

      Use the CPAN.

      Look in the CPAN first.

      If what you want to use isn't working, contribute a fix.

      If what you want truly doesn't exist, then go ahead and write it.

      If you have that many spare cycles that you want to write it from scratch even when a perfectly fine version exists in the CPAN, please contact me, I've got dozens of interesting projects for you to work on instead.

      -- Randal L. Schwartz, Perl hacker

        Lastly, because pjf, in all his glory, is parsing HTML by hand in his Finance Packages with regards to Yahoo (and if Yahoo changes the output *BAM*), instead of using the raw CSV generator, which I describe in my notes.

        While I am trying to find the time to offer a re-write to him, I'm figuring out how best to do that by using it in implementations like this.


        Hmmm, I'd hate to disagree with you (I didn't vote you down), but I think it has a lot to do with why you are doing it. If you are writing it to learn more, then I think it is okay “reinvent the wheel.” I do however see your point that why do we need twenty WWW::Yahoo::Finance modules? I think that in this situation (practicing your Perl code) you would not want to submit your (duplicate) code to CPAN or something like that to provide a demonstration in futility. If your are working on a project, then it makes sense to use what is out there like you suggested. It saves you time and money plus there are thousand of Perl programmers for free QA on the CPAN modules. I think what generally happens here is people use Perl Monks to expand their knowledge and for constructive criticism on their code.

        B.T.W. I would be interested in one of “dozens of interesting projects for you to work on instead.” Perhaps we could discuss it tonight at the meeting.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://131776]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2018-01-22 05:12 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (231 votes). Check out past polls.