Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Modules dealing with data files

by jgamble (Pilgrim)
on Nov 10, 2006 at 20:46 UTC ( #583408=note: print w/ replies, xml ) Need Help??


in reply to Modules dealing with data files

I have written a module that deals with France's INSEE codes, which allows one to look up postcodes and stuff like that. I've been toying with Geography::FR::Postcode as a name. (any other ideas?)

May I recommend the Geo::Postcodes base class for your module? Then your module would presumably be Geo::Postcodes::FR.


Comment on Re: Modules dealing with data files
Re^2: Modules dealing with data files
by grinder (Bishop) on Nov 10, 2006 at 23:25 UTC

    I looked at that briefly, but dismissed it as being too americanocentric. The notions of borough_of and county_of either have no counterpart in France, or if they do, in any case, I don't know which one is subordinate to the other, so I wouldn't know what to map to what. And thus I doubt that a French person does either.

    Conversely, I doubt an American knows how communes, régions and departements relate to each other.

    If this module were truly generic, it would have defined an abstract hierarchy of nested geographic concepts, to which country-specific labels could be attached.

    Finally, I find the Geo namespace somewhat ambiguous, since it is not clear whether we are talking about geography or geology.

    • another intruder with the mooring in the heart of the Perl

      but dismissed it as being too americanocentric

      Doubtful. I won't deny that there's an awful lot of, as you say, americanocentric, stuff on the Internet, but I don't buy that this counts, especially given that the author is (as best I can tell) in Norway. Also, in the US, "borough" is not a widespread concept. Only a few states use that term, and they use it for different things: in NY it's a subdivision of a city, in CT it's an incorporated community within a larger Town, and in AK it's basically equivalent to a county.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-23 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (135 votes), past polls