Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl Project?

by kyle (Abbot)
on Mar 26, 2008 at 16:49 UTC ( [id://676457]=note: print w/replies, xml ) Need Help??


in reply to Perl Project?

I was recently looking at the volunteer page at the Tor Project, and they have a piece of Perl, soat.pl, that needs a revamp. What it does is go to various web pages both via the open Internet and via a proxy to make sure that the proxy is not altering the pages on the way through.

There are things you could improve without changing the functionality. These include simple things like open without the requisite or die after it. It spawns a shell to md5sum instead of using Digest::MD5, wget instead of LWP::UserAgent, etc.

Functionally it could be improved by using HTML::Parser to look over the web pages and focus on parts that aren't expected to change (i.e., because of normal dynamic content or GeoIP differentiation). It could do with a config file or the judicious application of Getopt::Long (and the corresponding Pod::Usage).

This looks like low hanging fruit to me, but I might not be able to get the time to put into it. It would be a win for Perl evangelism because it might counter the idea that Perl "sucks at life", as the volunteer page suggests.

Replies are listed 'Best First'.
Re^2: Perl Project?
by amarquis (Curate) on Mar 26, 2008 at 17:20 UTC

    "Perl sucks at life" seems like a terrible way to get anybody to work on your Perl script for free. (Nevermind the fact that it looks like the original author is the one who made that thing a mess, not Perl).

      All that's true, but it leaves something out, specifically that the original author, who made the mess, is looking to rewrite in Python. I'm suggesting that the Perl be cleaned up instead.

        the original author, who made the mess, is looking to rewrite in X

        I hate it when authors make this sort of comment. What they really seem to be saying is, "somehow the language I originally wrote this code in caused it to be crappy and not me."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found