Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Modules dealing with data files

by jgamble (Pilgrim)
on Nov 10, 2006 at 20:46 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://583408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-09-07 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.