Diagramming solutions
When we are designing algorithms, we often use diagrams and flowcharts to help us analyze the process and visually see where our decisions are made. These diagrams allow us to create better algorithms. You'll remember that we created a flowchart in Chapter 5, Exploring Problem Analysis, when we were building a store (Figure 5.1 and Figure 5.2).
The process of creating these diagrams varies by developer or coder. For example, I usually create a brainstorm for the problem, then a flowchart from that information. To look at that process, let's go back to our survey problem from earlier in this chapter. Look at the following brainstorm. It is not complete, as you can add a lot of sub-topics. This brainstorm assumes we are surveying stakeholders to evaluate and share feedback on a school website.
As you can see from the diagram, there are many considerations to be made. The actual survey...