Doug Winnie demonstrates how you can become better at breaking down steps by reading along already written code and see how steps and groupings of actions that need to take place. Through reading your own code, you can learn how to better describe what needs to be done in code for yourself and others to make sure that important steps aren't missed or lost.
First, I need to define that we will…have a score in our program.…Then, you have two function calls…which you could say like this.…I initialize the values that are in the game,…and then I change the game score.…But, while this is what happens in the game,…it isn't very descriptive,…and it lacks the steps that are necessary…to go through everything.…In this case, we could break these down…into individual steps that are all located…within the functions.…So, we could better describe this if we said it this way.…
- Setting up your development environment
- Working with values and variables
- Using and customizing functions
- Creating conditional tests
- Using loops
- Creating and changing arrays