Often, people dive right into writing code as soon, until you’ve fully worked out the solution. Writing any more code than just for thinking is a critical mistake for two reasons.
if you want to move lines of code around, you have to either erase and rewrite them or draw arrows going all over the place.
issue with starting to code right off the bat is that it can lock you into a specific way of thinking about the problem.