News for hackers. Stuff that matters.
Re:The 14 pains of building your own billing system by 6510 on Wednesday March 06, 2024 @03:48AM (#39613756)
My vision just now was to create a sand box with a DSL (that doesn't use floats) and have others write the rules into it.

   VAT.include(country, type, amount){
     if(type == "high" && country == "NL"){
       return percentageOf(price, VAT.NL.high) + amount;
     }
     throw new Error("Error in VAT.include: VAT not found."); 
   }

There are no comments on this comment yet.