|
|
|
|
|
by avgDev
1053 days ago
|
|
I don't see it mentioned and I am bit surprised, but teaching kids how to breakdown "common" tasks into instructions. No programming language needed. Then, introducing edge cases. I remember a programmer making a video about their child writing instructions to "make p&j" sandwich.
Did you check if you have PB?
What happens if you don't?
Did you put the bread down first? Or are you applying PB to the counter. |
|
What's a peanut butter and jelly and sandwich (the result)? It's a slice of bread atop a layer of peanut butter atop a layer of jelly atop a slice of bread. Recursively define each part, for instance defining a layer of jelly in terms of manipulated blobs of jelly. Reverse the order of the definitions if using an early-binding language.
Disclaimer: I've never eaten nor made a P&J sandwich; please consider this code experimental...