for (int i = 1; i <= 5; i++) {
}
but then I'll realize I forgot to initialize a counter, so I'll go back up and add int counter = 0 at the top.
To combat this issue, I've been visualizing code in the future while writing the current code. This has been making my brain sharper and improving my programming. However, no one talks about it. Thoughts?