I’m a Perl programmer. I realize now that I’ve been spoiled by CPAN, the Comprehensive Perl Archive Network. It’s an enormous repository of Perl modules. If someone’s written a Perl module, it’s probably on CPAN.

I decided yesterday to start a little project using Python. New languages are best learnt when you have a project in mind, so I thought I’d use the opportunity to learn Python. Part of this project involves converting units, say from feet to meters. Surely someone’s written a Python module that does this, right?

Well, yes, someone has. I discovered this after an hour of searching. First I didn’t know where to look, so I started with Google. That lead to frustration, so I tried to find Python’s equivalent of CPAN, which after five minutes I discovered is called PyPI, or the Python Package Index. Fair enough. Let’s search for “unit conversion“. The results are less than useful. icCommunity? Low-level ZODB relationship index? What the fuck do those have to do with unit conversion?

After looking through the list you’ll eventually come to firkin. First off, stupid name. Second off, it’s version 0.02, which in programmer-speak is an incomplete and not-ready-for-prime-time module.

Seriously, Python, why can’t you come up with better naming conventions for packages? Would a little namespacing kill you? Take a look at Perl: if I do a CPAN search for “unit conversion” I get Math::Units as the first hit. By its name you can pretty much tell what it’s for: mathematical operations for units.

But firkin? That’s supposed to tell you something useful?

I was eventually pointed to a Python module called Unum, which is just as horribly named as firkin. And Unum isn’t on PyPI! What’s the point in having a repository if people aren’t going to use it?

Popularity: 11% [?]

Related Posts:

  • No Related Post