Alternatives to ‘If-Then’ Statements
Blog: Decision Management Community
The Medium’s article “5 Alternatives to ‘If’ Statements for Conditional Branching” states: “There’s some thinking in the programming community that
if should be considered harmful or a code smell. Regardless of the validity of this claim, there may be cases where
if isn’t the best approach to branching, or where branching should be avoided altogether“. The article offers six programming alternatives to
Probably our readers will add business rules as another (much better!) alternative. It actually points once again how differently programmers and non-programmers would represent the same business logic. You can find a good example in this old post “Different Decision Tables for a Very Simple Use Case“.