Whenever someone brings up washing machines and software, I am always reminded of Forth[0]:
As an example, imagine a microprocessor-controlled washing
machine programmed in Forth. The ultimate command in your
example is named WASHER. Here is the definition of WASHER,
as written in Forth:
: WASHER WASH SPIN RINSE SPIN ;
0 - https://www.forth.com/starting-forth/1-forth-stacks-dictiona...