I suffer the same problem if
1. I do not have proper comments
2. If I less variables. Its always good to use a ton of variables and minimum Constants. When initializing the variable put in comments what it is for.
Whenever I write code I first of all put down all the logic in pseudocode in comments.
Then I write the actual code underneath the logic comments.
Whenever I write code I first of all put down all the logic in pseudocode in comments.
Then I write the actual code underneath the logic comments.
Works for me.