4 ms·
"You can fucking strip the leading $ and commas you piece of shit mother fucking asshole terrible programmers." That sounds sensible, but now you've just broke
by jdg1 12y ago
"You can fucking strip the leading $ and commas you piece of shit mother fucking asshole terrible programmers."
That sounds sensible, but now you've just broken it for every country that uses comma as a decimal mark.
- intrasight 12y agoBut they know you locale and could do the right thing. Is not at all hard.
- awkward 12y agoThat's assuming users aren't resetting their locale. It's not uncommon for non english users to assume that the english version of a site is the real deal and their version is an inferior localization done by some backbenchers at whatever company made it. For example, here's a story about how the majority of power users in Poland use an english keyboard with specialized key bindings, because using a polish keyboard marks you as a n00b: https://medium.com/medium-eng/the-curious-case-of-disappearing-polish-s-fa398313d4df https://medium.com/medium-eng/the-curious-case-of-disappeari...
- angersock 12y agoIt's. Lazy. Programming.
- awkward 12y agoYes. And folks have been trained to think that everyone not coding for en-us is double lazy.
- angersock 12y agoThere are several different ways, say a currency dropdown, that could hint on how to parse free-text input. However, blaming the user for doing what makes sense is not helpful.
- awkward 12y agoI think we're in violent agreement here - I'm trying to get across that "just use locale" doesn't necessarily mean that you're done your UI.
- collyw 12y agoLaziness is a virtue for programmers.
- protomyth 12y agoEven without knowing the locale, it pretty easy to know which are NoOps and which mean something.
- Ntrails 12y agoMy favourite was a recent banking webform which refused to recognise "0". Apparently it's not a real number. When I got through to support, they explained I had to leave the box blank to represent zero... Mind: Blown.
- awkward 12y agoIt's because the data will eventually need to be fed into a mainframe that predates the Arabic numeral system.
- PhantomGremlin 12y agoI live in the USA and have a credit card issued by an American bank. When I pay my bill online, I want the $ and comma to work like I've known they work ever since I was in first grade over 50 years ago. I don't give a fuck about how the rest of the world does numbers and banking. That's their problem. If the UK were still using guineas and shillings, should I care about that? No. Deal with foreign currency problems on their websites. If the rest of the world wants to use commas and periods backwards from the way we do, then solve that problem for them elsewhere. Don't make my life difficult just so you can use the same code for a website in Elbonia. The rest of the world's problems are not my problems. Solve them, or don't. But don't make my life hard because you're* too fucking lazy to do the right thing. Computers should exist to make peoples' lives easier. People shouldn't be required to make programmers' lives easier. /rant off *not you personally, I don't know what you do, it's just an indefinite pronoun