News for hackers. Stuff that matters.
Re:Decision Tables by kevan on Thursday October 18, 2018 @05:45PM (#18252431)
These are a great way to create shared understanding with your non-tech business partners when requirements get complicated. My team used these a lot in an e-commerce context where checkout had quirky discount rules. e.g. give 10% off if the user has a product from X category in their cart, but not if the product is in Y subcategory or Z blacklist. And it's additive with other promotions of type A, but greatest-wins with promotions of type B.

Truth tables can eliminate a lot of ambiguity compared to a wall of text or dozens of bullet-point requirements.

There are no comments on this comment yet.