Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
molaram292734dHardcoding tax levels or shipping fees is plain fucking stupid and whoever did it should suck their bosses’ cocks until they go numb, then fix it for free/in their spare time.
Hardcoding will kill you every time. Configuration, configuration, configuration.
Also, I know where I'm going for post corona drinks!
AngryDev998165133dSuch things always have chances to change in weeks, months year or decades at some point. Hard coding with the belief that this will never change is going to cost you a lot of donkey work later where you will be changing those values in many places.
SiJayBe901233dAnd even if the system lets you define your tax rates, I think only a handful of them let you a define a "valid from / to" period.
Maer100333dAbout time that dumbshits who think that technical debt can just be ignored forever to get a quick buck get the consequences shoved up theirs.
Had leadership like that once. Jumped ship asap - one of the best decisions I ever made.
Hardcoded tax values..
saucyatom73533d@pythonInRelay That's not legal in Germany, you must show the price including VAT if you sell to consumers.
And it's very stupid to hardcode anything like that, also some items are taxed 7% or 0%.
Lensflare135833dConsider the cost of changing the VAT. Politics, organization, all the software changes. People that need to be payed to make these changes...
This might cost more than the total amount of money "saved" by the reduced VAT.
I know that it doesn't matter but it's funny to think about it.
Gigex4333dI am fucked I guess... wish me luck
eval56830d@pythonInRelay this is not at all how VAT works. It would make zero fucking sense for the payment provider to have ANYTHING to do with VAT. vAT gets charged by the business in response two a few variables such as destination country and product type. And ALL small businesses (except those that are VAT excempt) have to understand this themselves. Otherwise it's a tax penalty just waiting...
IntrusionCM175330d@pythonInRelay Out of curiosity... Where are you from?
I really never heard of a country without VAT.
Taxes are really different from country to country, but it's important for companies to track the taxes. It's not only a legal thing - it's important for the company, too. Without storing taxes and net -/ gross data, you really can't do proper planning or generate statistics. Stuff even get's funnier when it's international.
Accounting for imports from foreign countries is really ... really.... frigging hard.
(Anti dumping, transport fees, document fees, conversion of units, exchange rates, proper rounding, ... And so on. I once had an Excel Sheet with > 100 single points and an additional Power Point presentation to explain the details )
010001111181428dThis makes me smile in pure joy.