Decomposition in Scratch
You will remember from last week's module, we learned about the Decomposition strategy of Computational Thinking. Decomposition is a great strategy that can be applied in any coding or programming situation.
Decomposition in Scratch
Many coding languages and environments allow the coder to insert comments into the code. Comments are a wonderful way of decomposing the problem from the get-go. In this course, we ask that you include comments on all of your code. In fact, you should START with comments before you have even created any code. To create a comment in Scratch, right click on the coding canvas and choose, "Add Comment"
This will create a yellow sticky-note that you can use to add comments to your code. These comments are ignored by the program; they are literally comments that the programmer can use to plan or remind herself or himself what the code should do.
So, start all your projects by breaking down what you want to do. Remember to include the substantive elements you will need, the relationship between those elements, and how these might function. Doing so will make all your coding go more smoothly!