Get the latest tech news

The plan-execute pattern


A ubiquitous pattern you won’t find in your textbook.

On the other hand, I find most patterns in the Gang of Four book to be irrelevant to my daily work; they solve problems that a choice of programming language or paradigm creates. The run_build function is the driver loop that spawns processes and feeds their results to the state machine, which either outputs more tasks or reports that the build has finished. Finally, all programs are plans: a programmer makes all decisions in advance and encodes them as a byte array, leaving it to the computer to take care of the execution.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of execute pattern

execute pattern