3 ms·
> And this is a dream when it comes to modelling business logic, because it gives a common "mental space" so to speak to code that would have been spread throug
by WorldMaker 8y ago
> And this is a dream when it comes to modelling business logic, because it gives a common "mental space" so to speak to code that would have been spread throughout the codebase otherwise.
To wander down further tangential space, I did briefly wonder at a past job if I7 would have been a good fit for the basis of a business rule engine. At the time the answer was "absolutely not" because there was no way to embed the language, or a subset of it, in another platform and bend some of the IF domain assumptions.
Some of the work in modularizing the tools in the last couple of years seems to head in the direction that it is close to getting technically possible. There's still the problem that I7 is still not "perfect" for non-technical users (rules list oddities like indents and semicolon punctuation) and more importantly that performance guarantees with the I7 rule engine are hard.
I7 itself can work around the performance issues because it typically has complete knowledge of the domain world model at compile time and can memoize a lot of things at compile time and/or shortcut them at run time. If you were to try to build a business rules engine based on I7 you'd have a lot of fun trying to remove all the potential footguns that start to resemble the classic "paradox rules" to take down the system just like every other Shatner-era Star Trek episode.