|
|
|
|
|
by bartimus
2600 days ago
|
|
In this particular case you should probably implement some logging or alternative output that shows how the rules are being applied. Also perhaps the rules shouldn't be part of the code itself. It would be preferable to be able to add/remove/update a rule without needing to deploy a new version of the program (without going down the rabbit hole of implementing an entire logic engine). |
|
Every day someone came along with a bug. After tracing through the code for half an hour, the program was generally proven correct. The business had forgotten some weird edge case of an edge case.
I always wanted to write a small gui program that would list for the business which rules had been applied, and what all intermediate data was.
BREs were to slow, btw, so everything was hardcoded.