BBC Bitesize: Algorithms and Control Flow
Algorithms use control flow to make decisions about which order to do things. They can repeat actions or start new actions based on new information.
Computer programs use sequence, selection and iteration to control the flow of the program. These elements allow the program to make choices, change direction or repeat actions.
This is a bit more of formality with some concepts relating to control flow
Commands are run in the order that you specify. In Hopscotch this is indicated by the order that you place the blocks.
You can choose to make some parts of your code are run while others are not, depending on a condition that you specify.
You might commonly see structures such as If Statements (or cases which we don't have in Hopscotch though)
You can have specific parts of your code repeat, and choose the condition under which they repeat.
- a fixed number of times
- while/until a certain condition is true
- you can check the condition before each loop or after each loop
- infinite times
(We don't have While loops in Hopscotch but this can be done manually)
Why all this formality??
In the same way that you can decide you don't need to know all the grammar points of each word in a sentence to construct writing, nor all the processes that go into making paint to create with it, nor all the psychology of human beings to have a nice conversation with someone, nor all the workings of the world to go about it, you don't need to define every concept to use it while programming
I mean knowing more about linguistics can help you with writing effective sentences, knowing about what paint works well on which medium depending on its contents can help you use it to great effect and knowing about some computer science ideas can help you with programming.
But you get to decide: if formality excites you and provides a platform for another way of thinking of a framework for structuring your ideas, if you want to create organically without putting a name to everything, go for whichever – you are fine wherever you are!
(If doing something, that someone has told you is helpful, actually dulls the experience instead, I might say that is more unhelpful in that it is dulling your delight in doing it if anything... but anyway it is up to you :))
You can make flowcharts to represent processes or algorithms along with these ideas too
Where did you get this from?
It doesn't matter too much because you can learn it from lots of places – yeah I was introduced to it more formally through physical classes but everyone's using it subconsciously in Hopscotch so
Personally for me, I find formality can help with some other or more defined ways of approaching things, but I also love organic flow and discovering our own ideas.
Now here is a link I just found while searching:
(It looks great and you are much better off looking at that than looking at what I have from memory )