//This pseudocode will teach you how to make an English muffin for breakfast as //a programmer. It will also show you how to explain programming to //non-programmers.
check_ingredients( egg, English muffin, sausage, cheese, mayonnaise) {
if !egg
return error
if !Englishmuffin or Englishmuffin==moldy
return error
if !Suasage or !cheese or !mayonnaise
return error
return true
}
cook(ingredient){
place in pan
when done
remove
}
assemble() {
stack ingredients
}
eat(){enjoy}
//in the main function
if check_ingredients( egg, English muffin, sausage, cheese, mayonnaise){
cook(egg)
cook(sausage)
cook(English muffin)
mayonnaise.spread()
assemble()
eat()
}
*/As you can imagine I had an English muffin for breakfast. It got me thinking as I made it about the steps involved. The concept of pseudocode is a great starting point for explaining programming to non-programmers. As a teenager I competed quite aggressively in science fairs. I had to come up with a simple way to explain programming to judges. Often times they were experts in their own fields but had no background in programming. Pseudocode improvisation was my preferred method because even if you have never touched a computer before you can quite easily understand the concept of pseudocode. I would spontaneously come up with a short pseudocode related to their field to explain how programming works and how my projects worked.
When making video games you can have a similar problem in explaining what you do to people who have no background in the programming side of building video games. These might be people on your team or investors or even relatives at annual family dinners. Start by following these simple steps (I’m assuming for the purposes of this explanation that you are a programmer.)
Step 1. I do programming.
Step 2. Counter their “What is programming?” with programming is like making an English muffin. First you check if you have all the supplies, then you cook the ingredients, then you assemble it, then you eat it. Programming is simply writing down the steps in such a way that a computer can do it. You can substitute almost anything for making an English Muffin.
Step 3. Specific key words related to your specialty. This is so if someone asks them a question about what you actually do they can show off their knowledge. Keep it simple. For example “I use the programming language C# to build video games.” You can expand upon what type of video games you build if asked for more details.
That’s it. Three simple steps that will leave your team mates, investors, and family members actually having an idea of what you do as a programmer.
A last interesting fact the English muffin is not actually English. They were invented by a British ex-pat in America and in fact are sold overseas as American muffins. I found the fascinating story at https://www.thekitchn.com/the-english-muffin-is-not-english-at-all-234056 /*
The post The Delicious Pseudocode of an English Muffin appeared first on Gilded Octopus.
Deliciously understandable.