News for hackers. Stuff that matters.
Re:'Reading crisis' prompts Denmark to end 25% tax on books by bruce511 on Thursday August 21, 2025 @02:33AM (#44969707)
There's absolutely no reason to hard-code the value. That's just bad programming.

However you can't expect programmers to predict all possible future compatibility.

In my country VAT has a current rate. That rate can, and has, changed. But we have one rate. Some goods are exempt, but products have a VAT yes/no field.

Perhaps in the future the system will change. One possible change is that VAT attracts different % for different products. I'm not predicting that, or coding for it now. VAT rules could change to anything- I can't code against that.

There are no comments on this comment yet.