• (cs) in reply to Getter
    Anonymous:
    <FONT size=2><FONT size=2>

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </FONT></FONT>

    Maybe you should think before you write, dude.  If I was writing a progam to map full names to their abbreivations, I wouldn't just assume that the first x letters were the abbreviation.  Who gives a crap if the developer knows the provinces or states or whatever?  The programmer's job is to wrte code that works, not to memorize a bunch of trivia.

    Your response qualifies as a WTF.

  • (cs) in reply to loneprogrammer
    loneprogrammer:
    Anonymous:
    Charles Nadolski:
    Ahh... a nice, classic, good, old-fashioned WTF.  You made my day :)


    Agreed, there's no usual forum-justifying this one :)

    This is not a WTF.  This is the fastest way to get an abbreviation from a state name.  I bet you could get 100 wrong answers out of this function in the same time it takes to get one right answer with a table lookup.



    LOL... you nearly had me there.
  • (cs) in reply to Getter
    Anonymous:
    <font size="2"><font size="2">

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </font></font>


    Without looking:

    Alabama
    Alaska
    Arizona
    Arkinsas
    California
    Colorado
    Connecticut
    Delawere
    Florida
    Georgia
    Hawaii
    Idaho
    Illinoisl
    Indiana
    Iowa
    Kansas
    Kentucky
    Louisiana
    Maine
    Maryland
    Massachussets
    Michigan
    Minnesota
    Mississippi
    Misouri
    Montana
    Nebraska
    Nevada
    New Hampshire
    New Jersey
    New Mexico
    New York
    North Carolina
    North Dakota
    Ohio
    Oklahoma
    Oregon
    Pennsylvania
    Rhode Island
    South Carolina
    South Dakota
    Tennessee
    Texas
    Utah
    Vermont
    Virginia
    Washington
    West Virginia
    Wisconsin
    Wyoming

    I repeat, that was from memory. Yes, I know them alphabetically.
  • (cs) in reply to Maurits
    Maurits:
    I wish I was this coder's manager... I'd send him a three-line review:

    GetStateAbbreviation("NORTH CAROLINA")
    GetStateAbbreviation("NORTH DAKOTA")
    GetStateAbbreviation("NORTHERN MARIANA ISLANDS")



    I finally got the joke here.

    NO
    NO
    NO


  • (cs) in reply to Getter
    Anonymous:
    <font size="2"><font size="2">

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </font></font>


    Yes.  Not knowing something off the top of your head is an EXCELLENT reason to do it-ass backwards.  Especially when it's something that's trivial to look up.  I've memoried the entire Java API for just this reason.
  • (cs) in reply to mizhi

    Ok, heres another WTF.  Or maybe not, but seeing as I am not American I am scratching my head over this.  Take a look at that list of abbreviations again.  http://www.usps.com/ncsc/lookups/abbr_state.txt . Right down the bottom where it shows "Military State" abbreviations

    If I address it AE, where the heck does it end up?

     

    <FONT color=#800080></FONT>
  • (cs) in reply to sadmac

    >I repeat, that was from memory. Yes, I know them alphabetically.
    Pity you can't spell them:

    Arkinsas
    Delawere
    Illinoisl
    Massachussets
    Misouri

    ;-)

  • (cs) in reply to sadmac
    sadmac:
    Anonymous:
    <FONT size=2><FONT size=2>

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </FONT></FONT>



    Without looking:

    ...

    Illinoisl

    ...

    I repeat, that was from memory. Yes, I know them alphabetically.

    When did they let Illinoisl in the union?

  • (cs) in reply to Ember
    Ember:
    Okay, so it's still a WTF, but not as much as some are saying.  The "optimization" that people are making such a big fuss about is there because most people will use the two letter abbreviation when entering their state online.  This method exists for the people who for some reason take the time to defy convention and enter the full name.  That said, I'll admit it's not too well made...


    Yeah? well what happens with the user puts in the wrong two letter abbreviation as well?  Still a WTF.
  • (cs) in reply to Ember
    Ember:
    Okay, so it's still a WTF, but not as much as some are saying.  The "optimization" that people are making such a big fuss about is there because most people will use the two letter abbreviation when entering their state online.  This method exists for the people who for some reason take the time to defy convention and enter the full name.  That said, I'll admit it's not too well made...


    Yeah? And what if the user puts in the WRONG two-letter abreviation for the state?  Still a WTF, even though the user's abbreviation will usually be more correct...
  • CleverAlias (unregistered) in reply to tiro

    @dubwai, sadmac, tiro: you're all missing Getter's point.


    He's not saying you should memorize all of that crap. He's not saying that because you can't memorize it you should use a stupid algorithm.


    He more seems to be saying that its stupid to blame stupidity on nationality. It's obviously a capability of all humans, as people continue to demonstrate.

  • (cs) in reply to Charles Nadolski

    Charles Nadolski:
    Ember:
    Okay, so it's still a WTF, but not as much as some are saying.  The "optimization" that people are making such a big fuss about is there because most people will use the two letter abbreviation when entering their state online.  This method exists for the people who for some reason take the time to defy convention and enter the full name.  That said, I'll admit it's not too well made...


    Yeah? well what happens with the user puts in the wrong two letter abbreviation as well?  Still a WTF.

    If you provide a zipcode field, you shouldn't even consider what the user types into the state field, since you can and should get the state from the zipcode. Only if the state you get from the zip doesn't match any possible parsing of what the user typed into the state field should you worry about it. At any rate, the state field should never be used as a primary data source when the zip is available. Zipcodes are non ambiguous: 90025 is 90025 and you don't have to dork around trying to figure out if AKLEAKELKElasklKAkE is Alaska, AK, Alabama, Alberta (Canada) or whatever the hell, or vice-versa if NE is Nebraska or New York spelled out but truncated when the user typed Enter and submitted the form by mistake before they were done.

     

  • (cs) in reply to sadmac
    sadmac:
    Anonymous:
    <font size="2"><font size="2">

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </font></font>


    Without looking:

    ...

    Illinoisl

    ...

    I repeat, that was from memory. Yes, I know them alphabetically.



    Haha, you got Illinois wrong!




    Actually, that typo pretty much proves you did it from memory.  Good job!

  • (cs) in reply to sadmac
    sadmac:
    Anonymous:
    <FONT size=2><FONT size=2>

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </FONT></FONT>



    Without looking:

    (lots of states)

    You left out

    Al-Anbar

    Ninawa

    Qandahar

    [H]

  • (cs) in reply to CleverAlias

    Anonymous:
    @dubwai, sadmac, tiro: you're all missing Getter's point.

    He's not saying you should memorize all of that crap. He's not saying that because you can't memorize it you should use a stupid algorithm.

    He more seems to be saying that its stupid to blame stupidity on nationality. It's obviously a capability of all humans, as people continue to demonstrate.

    No, I got the point.  But the argument used in making the point was illogical.  It amounted to "you can't name all the states so you can't criticize someone who also doesn't know them for writing a stupid algorithm that has nothing to do with knowing all the states."

    While I'm on a tirade, knowing all the states isn't "geographical knowledge" anymore than knowing Einstein's name is knowledge of physics.  Knowing where the states are located would be an example of geographic knowledge.

  • (cs) in reply to evnafets
    evnafets:

    Ok, heres another WTF.  Or maybe not, but seeing as I am not American I am scratching my head over this.  Take a look at that list of abbreviations again.  http://www.usps.com/ncsc/lookups/abbr_state.txt . Right down the bottom where it shows "Military State" abbreviations

    If I address it AE, where the heck does it end up?

     



    There is still a 5 digit zip code that tags it to a specific military base, and they route it to the right place*. 

    *But, since it is the USPS we're talking about here, it could really go anywhere.
  • (cs) in reply to evnafets
    evnafets:

    Ok, heres another WTF.  Or maybe not, but seeing as I am not American I am scratching my head over this.  Take a look at that list of abbreviations again.  http://www.usps.com/ncsc/lookups/abbr_state.txt . Right down the bottom where it shows "Military State" abbreviations

    If I address it AE, where the heck does it end up?

    <FONT color=#800080></FONT>

    If you address it AE, it ends up back in your mailbox, just like if you address something NY.  You need a little more info to get a letter to the right place.

  • Anonymous (unregistered) in reply to dubwai

    How would they know where my mail box was though if it only said AE or NY ??

  • (cs) in reply to sadmac
    sadmac:
    Anonymous:
    <font size="2"><font size="2">

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </font></font>


    Without looking:

    Alabama
    Alaska
    Arizona
    Arkinsas
    California
    Colorado
    Connecticut
    Delawere
    Florida
    Georgia
    Hawaii
    Idaho
    Illinoisl
    Indiana
    Iowa
    Kansas
    Kentucky
    Louisiana
    Maine
    Maryland
    Massachussets
    Michigan
    Minnesota
    Mississippi
    Misouri
    Montana
    Nebraska
    Nevada
    New Hampshire
    New Jersey
    New Mexico
    New York
    North Carolina
    North Dakota
    Ohio
    Oklahoma
    Oregon
    Pennsylvania
    Rhode Island
    South Carolina
    South Dakota
    Tennessee
    Texas
    Utah
    Vermont
    Virginia
    Washington
    West Virginia
    Wisconsin
    Wyoming

    I repeat, that was from memory. Yes, I know them alphabetically.



    I was just out of High School in 1988, and in a military school, where I met Heafy.
    Heaf allowed he was 29 years of age.
    "Heaf," I said, "WTF?" (we really used that TLA in the USN back then), "isn't it a little late to be just starting out in the Navy?"
    "I used to sort mail in New Yo'k City," he replied, and I won't try to capture his accent anymore, "and one day, I realized I knew the location of every five-digit zip code in the United States.  I knew I had to go."

  • Coward (unregistered) in reply to loneprogrammer

    loneprogrammer:
    Anonymous:
    @strongarm: you didn't make up the word fantabulous

    answers.com/fantabulous

     

    Why do you guys always have to be dicks? He was making a JOKE.

    Morons.

  • (cs) in reply to Anonymous

    Anonymous:
    How would they know where my mail box was though if it only said AE or NY ??

    Well, if you don't put a return address on it, it probably wouldn't.  Or if the carrier picks it up of of your mailbox and sees that you are a moron, he or she will probably just put it back.  You see, the 'return' address is your address.  The address is where you want the letter to go.  The third piece you'll need is a stamp.  You should try sending a letter sometime.  It's a good life experience.

  • (cs) in reply to Coward

    Anonymous:
    Why do you guys always have to be dicks?

    Why wouldn't we always have to be dicks?

  • Fregas (unregistered) in reply to Getter
    Anonymous:
    <FONT size=2><FONT size=2>

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </FONT></FONT>

    I think that was the point...that a foreign programmer wouldn't know that the state abbreviates aren't based upon the first two characters any more than a U.S. employee would know the foreign abbreviations.  However, you'd think either programmer would have the brains to ask, or run the application a few times and realize that they got duplicate abbreviations for completely different states. 

    I think the dig aimeed at foreigners is because we have so many progamming jobs going to india and other forienn firms by American companies, and not so much the reverse.  US Companies are now only starting to realize that when they do this, something gets "lost in translation" as the above WTF illustrates.

  • Bill (unregistered) in reply to Getter
    Anonymous:
    <font size="2"><font size="2">

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </font></font>


    As an American I, for one, can name all 50 states. Capitals? That is what google is for. This is all beside the point. If I were being paid to produce a function that returns state abbreviations for some random foreign country I would not know them off the top of my head. I would, however, be responsible for finding them out and not just shipping whatever crazy scheme I make up for determining them!
  • (cs) in reply to loneprogrammer
    loneprogrammer:
    Anonymous:
    @strongarm: you didn't make up the word fantabulous

    answers.com/fantabulous

    You got me, although I never heard of Mel Fisher...so maybe he stole it from me.

  • anon (unregistered) in reply to strongarm

    Not too impressed with all this bashing foreigners ... I work for an American firm who decided to abreviate all of the English counties to the first 2 letters - thus I apparently live in WI (Wiltshire, south-west of England) [:'(] and it was the first either I or my postman knew of this.... (Perhaps this is where the code came from?!)

  • Juenemann (unregistered) in reply to sadmac

    Well, I memorized the zip codes:

    00000

    00001

    00002

    ...

    99999

    Does that count?

     

  • (cs) in reply to Charles Nadolski
    Charles Nadolski:
    Ember:
    Okay, so it's still a WTF, but not as much as some are saying.  The "optimization" that people are making such a big fuss about is there because most people will use the two letter abbreviation when entering their state online.  This method exists for the people who for some reason take the time to defy convention and enter the full name.  That said, I'll admit it's not too well made...


    Yeah? And what if the user puts in the WRONG two-letter abreviation for the state?  Still a WTF, even though the user's abbreviation will usually be more correct...


    Whoa now.  I'm not sure if we should take the term WTF so lightly.  If somebody puts in an incorrect abbreviation, it at least won't be sent to the wrong state any more often than in would if the programmer had put in an "abbreviation checker."  Yeah, he should still put one in, but if i saw code in which that was the only thing wrong, I wouldn't say WTF, I'd say, "oh, he forgot something there."  Ok, just wanted to make sure people understand the terribly grave nature of the term.
    -Oh, and I liked the second, elaborated post ;)
  • (cs) in reply to Coward
    Anonymous:

    loneprogrammer:
    Anonymous:
    @strongarm: you didn't make up the word fantabulous

    answers.com/fantabulous

     

    Why do you guys always have to be dicks? He was making a JOKE.

    Morons.

    Besides, he may well have come up with it. "coming up with something" doesn't mean being the first, it only means that one's brain formulated an idea without having been exposed to it before. God knows some of the WTFs on this site are from people coming up with ways to validate a string that not only fail to be novel but also violate every single programming practice known to man.

     

  • (cs) in reply to rogthefrog

    Speaking of WTFs about the forum here... I won't say anything about the WYSIWYMGIYAL <FONT size=1>(what you see is what you might get if you are lucky)</FONT> editor, but what's with the javascript paging system? If you click on the page number at the bottom of a multipage thread, this is what actually gets invoked:

    BLOCKED SCRIPT__doPostBack('PostFlatView$_ctl0$Pager$0','')

    No wonder this forum is so F'ing slow and riddled with errors that get logged, even though they are unknown most of the time. Must have been written by the author of one of the examples on this forum.

  • (cs) in reply to rogthefrog
    rogthefrog:

    javascript :__doPostBack('PostFlatView$_ctl0$Pager$0','')


    Welcome to the glory that is ASP.NET
  • (cs) in reply to Ember
    Ember:
    Okay, so it's still a WTF, but not as much as some are saying.  The "optimization" that people are making such a big fuss about is there because most people will use the two letter abbreviation when entering their state online.  This method exists for the people who for some reason take the time to defy convention and enter the full name.  That said, I'll admit it's not too well made...


    Damn hell it's not well made, because they oughta have put a drop down list of states instead of asking for a string entry!
  • (cs) in reply to Chip

    That would be Nuevo Leon  (which is my home state, my guess is that it was from Monterrey, my hometown, which is the capitol and biggest city from that state). What makes it specially troublesome is that Nuevo Leon is one of the few states that get abbreviate with two capitalized letters as the states in USA.
    We also have Baja California (BC) whose mail would probably end in Canada's British Colombia.

  • (cs) in reply to CleverAlias
    Anonymous:

    It's interesting to see that "res2" blames this on the failure of the American educational system, christoofar says it must be the work of foreign (assumed to be non-american) programmers, and WTFer says one must be "american" to make such stupid comments..

    I sincerely apologize, it was meant as a joke. I have seen WTFs both while I worked in the States and while working in Mexico. In fact I have seen a lot more WTF in Mexico because without the big competition like in the States, people tend to become really lazy programmers. (This site is a great place to learn good programming practices,  BTW).
  • (cs) in reply to Juenemann
    Anonymous:

    Well, I memorized the zip codes:

    00000

    00001

    00002

    ...

    99999

    Does that count?

     


    They start at 01000 and end at 99950. =p (Though 00100-00199 are used for international addresses, 00400-00599 for government purposes, and 00600-00999 for puerto rico.)
  • a_clockwork_orange (unregistered) in reply to strongarm
    strongarm:
    This is fantabulous (if people get to make up their own state abbreviations, I get to make up my own words). Not only does the programmer not have a clue about US geography, but in their rush to optimize only abbreviating states with a name longer than two characters, they messed up, by upper casing the entire string first, then checking the length, and then taking substring and discarding the rest. Waste! Waste! Waste! Sadly, I'm not convinced this is an H1B or a off-shore programmer. I've helped enough of my teacher friends in three states grade homework assignments. Some kids really are this dum (sic). --- Boy, if you get any dumber you're going to need to wear a helmet.


    1) Google says: <font color="" size="-1">about 175,000 for fantabulous</font>  you're far from the first.
    2) Your use of "sic" is incorrect, as it is meant to imply that the error is reproduced from the original (thus), whereas you wrote the original.
  • Andrei (unregistered) in reply to a_clockwork_orange

    The thing is, I think that most users just entered state properly, like MD or NY. But those select few people made the mistake of typing New York, killing the system. Limiting the text field to two characters would be a help!

  • (cs) in reply to a_clockwork_orange
    Anonymous:
    strongarm:
    This is fantabulous (if people get to make up their own state abbreviations, I get to make up my own words). Not only does the programmer not have a clue about US geography, but in their rush to optimize only abbreviating states with a name longer than two characters, they messed up, by upper casing the entire string first, then checking the length, and then taking substring and discarding the rest. Waste! Waste! Waste! Sadly, I'm not convinced this is an H1B or a off-shore programmer. I've helped enough of my teacher friends in three states grade homework assignments. Some kids really are this dum (sic). --- Boy, if you get any dumber you're going to need to wear a helmet.


    1) Google says: <font color="" size="-1">about 175,000 for fantabulous</font>  you're far from the first.
    2) Your use of "sic" is incorrect, as it is meant to imply that the error is reproduced from the original (thus), whereas you wrote the original.


    I think the fact that nobody has a sense of humor on here anymore is the biggest WTF.  Unless you're being sarcastic, but since we don't have a sarcasm tag on here it's hard to tell.


  • Sathamoth (unregistered)

    Haha, best WTF for long time :) Usually WTFs published here get 80% or more of their results right, but this one truly belongs to its own category.

  • (cs) in reply to Jon Limjap

    Jon Limjap:
    Ember:
    Okay, so it's still a WTF, but not as much as some are saying.  The "optimization" that people are making such a big fuss about is there because most people will use the two letter abbreviation when entering their state online.  This method exists for the people who for some reason take the time to defy convention and enter the full name.  That said, I'll admit it's not too well made...


    Damn hell it's not well made, because they oughta have put a drop down list of states instead of asking for a string entry!

    I agree.. mostly. They must obviously include the empty statename for us foreigners. I personally put in NB if the state is required, as I live in Noord Brabant, the Netherlands [:P]

    Drak

  • (cs) in reply to memprime
    memprime:
    evnafets:

    Ok, heres another WTF.  Or maybe not, but seeing as I am not American I am scratching my head over this.  Take a look at that list of abbreviations again.  http://www.usps.com/ncsc/lookups/abbr_state.txt . Right down the bottom where it shows "Military State" abbreviations

    If I address it AE, where the heck does it end up?

     



    There is still a 5 digit zip code that tags it to a specific military base, and they route it to the right place*. 

    *But, since it is the USPS we're talking about here, it could really go anywhere.


    What's wrong with the USPS?  I've recieved credit card junk mail that was addressed to a dorm I had lived in years before.  And I never filed a forwarding address.  Way to go, USPS! 

    But, seriously, they do do a good job.  Certainly better than most other countries' postal services. 
  • Rn (unregistered) in reply to strongarm

    strongarm:
    This is fantabulous (if people get to make up their own state abbreviations, I get to make up my own words). Not only does the programmer not have a clue about US geography, but in their rush to optimize only abbreviating states with a name longer than two characters, they messed up, by upper casing the entire string first, then checking the length, and then taking substring and discarding the rest. Waste! Waste! Waste! Sadly, I'm not convinced this is an H1B or a off-shore programmer. I've helped enough of my teacher friends in three states grade homework assignments. Some kids really are this dum (sic). --- Boy, if you get any dumber you're going to need to wear a helmet.

    Please add 'some teachers' as well... :)

  • BogusDude (unregistered) in reply to strongarm
    strongarm:

    Some kids really are this dum (sic).

    --- Boy, if you get any dumber you're going to need to wear a helmet.

    You got that wrong. Some teachers really are this dum (sic) !

  • Alien (unregistered) in reply to Drak

    Oh yes- the drop-down list of states. The assumption by dumb US programmers that everyone in the world lives within the convention of having a 2-letter state abbreviation. And a "zip code". And a "city".[:@]

  • Z (unregistered) in reply to a_clockwork_orange
    Anonymous:

    2) Your use of "sic" is incorrect, as it is meant to imply that the error is reproduced from the original (thus), whereas you wrote the original.


    His use of "sic" is not incorrect. It is true that it is often used for indicating that a reproduced error in a quote is actually reproduced and not introduced, but it is not the only use of the word.

    From WordNET:
    sic
    adv : intentionally so written (used after a printed word or phrase)

  • (cs) in reply to bobday
    bobday:
    memprime:
    evnafets:

    Ok, heres another WTF.  Or maybe not, but seeing as I am not American I am scratching my head over this.  Take a look at that list of abbreviations again.  http://www.usps.com/ncsc/lookups/abbr_state.txt . Right down the bottom where it shows "Military State" abbreviations

    If I address it AE, where the heck does it end up?

     



    There is still a 5 digit zip code that tags it to a specific military base, and they route it to the right place*. 

    *But, since it is the USPS we're talking about here, it could really go anywhere.


    What's wrong with the USPS?  I've recieved credit card junk mail that was addressed to a dorm I had lived in years before.  And I never filed a forwarding address.  Way to go, USPS! 

    But, seriously, they do do a good job.  Certainly better than most other countries' postal services. 

    They deserved most of their reputation up until the 70's and 80's. After UPS and Fedex showed them up so badly and we got a few new postmaster generals with a clue, they went from doddering wtfs to being the cheapest and fastest for letters and small packages, and about as reliable as the other major shippers.

    Free markets really do work wonders sometimes, if slowly. =D
  • (cs) in reply to sadmac
    sadmac:
    Anonymous:
    <font size="2"><font size="2">

    Probably If your manager asks you to name all US states you can't even name them being an US citizen or whatever the f** nationality yours is. Then why blame foreign programmers?
    Would you know the state abbreviations of some other foreign country?
    Think before you write Dude!

    - Getter

    </font></font>


    Without looking:

    {a whole buncha states}



    HA HA HA!  You dummy! You forgot England!

        -dZ.
  • (cs) in reply to Alien
    Anonymous:
    Oh yes- the drop-down list of states. The assumption by dumb US programmers that everyone in the world lives within the convention of having a 2-letter state abbreviation. And a "zip code". And a "city".[:@]


    Oh yes -- the assumption by dumb foreigner consumers that every company in the US with a web site must necessarily sell to everywhere else in the world.

        -dZ.
  • Hank Miller (unregistered) in reply to rogthefrog
    rogthefrog:

    If you provide a zipcode field, you shouldn't even consider what the user types into the state field, since you can and should get the state from the zipcode. Only if the state you get from the zip doesn't match any possible parsing of what the user typed into the state field should you worry about it. At any rate, the state field should never be used as a primary data source when the zip is available. Zipcodes are non ambiguous: 90025 is 90025 and you don't have to dork around trying to figure out if AKLEAKELKElasklKAkE is Alaska, AK, Alabama, Alberta (Canada) or whatever the hell, or vice-versa if NE is Nebraska or New York spelled out but truncated when the user typed Enter and submitted the form by mistake before they were done.



    WTF!   Zipcode is a redundant "checksum" for the city/state.   You should ALWAYS look up the city/state and zip-code in a database annd make sure they match.   If they do not match you need to ask : Did you mean Athens, Georgia, or Wittenberg WI?  

    Be careful though, the post office made a big WTF when assigning zip codes, there are some cities that share zip codes with another.   Some big companies get their own zip code, and most big cities have several zip codes.  

    Remember to handle the same for foriegn countries if you ship to them of course.   Most (but not all) have some form of postal code that you need to check, but it might not be 5 digits.  


  • (cs) in reply to Rn
    Anonymous:


    Please add 'some teachers' as well... :)


    Then we also need to include parents.  Especially the one's that rip teachers a new one for assigning homework, or that get pissy when asked to become involved with their child's edubacation.

Leave a comment on “I Heart Nebraska ”

Log In or post as a guest

Replying to comment #:

« Return to Article