oop - What is the best way to represent a complicated truth table in Java or other OO/non-functional languages? -


I am implementing a number of complex business logic which is shown in the true table / business rule matrix. In the past, as a result of implementing these rules, many if ... and are given details, I can not help but feel like a functional language to express these rules more beautifully Lends to

How can I make implementation less painful in Java?

What are some helpful patterns while doing this?

Use instead of writing directly in the rules Java exists for these things.

Alternatively, write your rules in a language that supports pattern matching to reduce the number of conditional numbers. Comes to mind.

Comments