A "stupid programmer" story
Declarative vs imperative
- mapping from declarative to imperative is not always clear
- adding new rules often is hard or even is not possible w/o rewriting
---?image=assets/rules_engine.jpg&size=auto 90%
- Customer makes a booking
- Temperature outside is 25˚C
- Today is Feb 6
- There were no alert notifications
- Discount value is 5%
- When customer makes a booking on Feb 6, give him a 5% discount
- When temperature outside is more than 25˚C, fire up an alert
Useful links: