by quickthrower2 · 7y ago · 0 comments
For example in OO avoid making a derived class for a French tax calculation for your one French customer’s invoice. I’m assuming here that your product is not an accounting package and the tax issue is just for SaaS billing.
Instead make the design loose enough that this can be accommodated by data. Maybe even manually enter their tax amount in a free text field.
But tying up the code for that edge case (and doing so for every edge case) will lead to a complicated system.