Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Naming Convention for State / Region / Province

Tags:

I am building a class that represents a US State or Canadian Province. What should the class be called?

Some ideas:

  • Region: Problem with this is that .Net has a RegionInfo class that uses the term Region to represent a country (and not a State or Province).
  • State: Problem with this is that it could cause confusion with Application State, or Session State, etc...
  • Province: Could work, but very Canada-centric. Just doesn't feel right.

EDIT: GeographicalRegion seems like the way to go. It could even be used as a base class for other geographical region types (ie: Country) and still make sense.

like image 972
Alex Czarto Avatar asked Feb 16 '09 15:02

Alex Czarto


People also ask

What is difference between region and province?

province Add to list Share. A province is a region within a country. If you travel to Canada, you'll have to decide whether you want to go to the province of Quebec, or Saskatchewan, or one of the other 8 provinces in that enormous country. Many countries are divided into provinces.

What does state province region mean?

A province is an area of land that is part of a country, similar to a state or a county. It can also be an area of land under political control by an outside country, similar to a colony. Provinces are usually units of government. Canada has 10 provinces, each with a lieutenant governor.

Is state equal to province?

In most cases, a province and state will be the same thing. There are specfic differences within the contexts of certain countries, but at a high level, they serve the same purpose. States and provinces are regions designed to organize administrative zones within a country.


2 Answers

GeographicalRegion would be my choice. Its pretty short and totally unambiguous, and it has no connotations with real types of area such as Province or State.

like image 56
Jack Ryan Avatar answered Sep 25 '22 18:09

Jack Ryan


Definitely don't go with "State" - way too confusing, and "Territory" has .ca implications too. Wikipedia suggests "Subnational" or "SubnationalDivision" would be good.

like image 24
annakata Avatar answered Sep 23 '22 18:09

annakata