Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a classic localisation issue.

When I was younger and worked mostly for Danish companies, we always knew that that a system _could_ be utilised in another locale. as such we always tracked currencies, timezone, etc.

Starting to work for American companies all that is out the window. An int with the var name "amount" – of cause that is USD!



> An int with the var name "amount" – of cause that is USD!

Or is it cents? Or fractions of cents?

Enjoy digging through the source code and commit history (which may sometimes look like db.prices.old.2022.bak.php) to try and figure out what the answer is!

Bonus points if at some point, that changed. Extra bonus points if it didn't change everywhere.


Ours wasn’t called just amount, it was called “amount_usd” and represented the local currency. Fun times!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: