Let Business Write Business Logic
summary
Builds a constrained rule language so business users edit decision logic as strings that get lexed and parsed into an AST and evaluated to a boolean. Uses Erlang’s leex and yecc (bundled with Elixir) to implement a boolean template language with variables, and, not, precedence and a safe evaluator that rejects invalid expressions. Prototype runs at a veterinary startup for appointment surveys, mostly successful though dirty clinic data once triggered an embarrassing reminder.
AI-written summary · about
chapters (7)
- 0:00Introduction and background
- 3:21The business problem
- 6:13Defining the solution
- 11:54Lexer and parser concepts
- 14:36Building the implementation
- 24:33Extending the logic
- 30:21Community and conclusion
related talks
36m"Business Logic in Ruby"
01h 07mThe courage to business logic - Business Driven Architecture
43mThe Tyranny of Structurelessness
54mExperiments in Reasoning -
01h 01mArchitecture Decisions: A Case Study -
37mClarifying Rules Engines with Clara Rules
28mWhat You See Is What It Does: A Structural Pattern for Legible Software
47mThe Tension Between Expediency and Correctness
