TLDR Web Dev · OPINIONS & ADVICE

THE PLAN-EXECUTE PATTERN

mmapped.blog7 min read

Summary from the TLDR Web Dev newsletter

The plan-execute pattern is a design pattern used to separate the planning phase (decision-making) from the execution phase (actions) when developing software. It helps in testing the decision-making part and debugging by allowing inspection of the plan data structure. This pattern is commonly used in various areas, such as query planning in relational databases and interpreters. The execution phase can be further split into a state machine and a driver loop to handle uncertainties.