Hacker News new | ask | show | jobs
by la6472 1505 days ago
Any website worth anything would have done a real time check on the users balance and only allow the leftover amount to be used to buy the bonds I.e if I already have $2K worth of bonds then I should be allowed only another $8K worth of bonds. How difficult is it to build this simple business logic into the user experience? Not a lot specially with the resources at their disposal. But unfortunately I can guarantee that the bureaucratic mechanisms , the digital divide that exists in the govt departments will ensure that there is no quick fix for this. And on top of that some of us may think of this as a feature :D and don’t realize what is wrong with this picture.
1 comments

> check on the users balance and only allow the leftover amount to be used to buy the bonds I.e if I already have $2K worth of bonds then I should be allowed only another $8K worth of bonds.

Your pseudocode already failed the unit tests. The limit is 10k per year, and you can hold I bonds for 30 years. Someone can have 300k of I bonds in their account balance.

(Not that it would be hard to do it correctly.)

Touché :p