Ever have this problem?
Here's my problem which doesn't have to do with my code, but with my concentration. Ive been working on this project for work on and of for roughly the last 9 hours, but i spaced out for the last hour or so and ended up with 184 lines of comments in my code all random. Anyways I look forward to hearing what you all have to say and any possible solutions to help with the focus.
I listen to music to try to keep myself on track. I get into the music enough and my mind focuses on what I'm doing and stops wandering.
If I keep getting distracted by the internet and such, I just shut off my wifi on my laptop and focus that way.
Just do what you need to to remove the distraction.