Do other things and let your mind expand and bring those benefits to your code. It will make you a better coder (and person) and life will actually be interesting.
Do other things and let your mind expand and bring those benefits to your code. It will make you a better coder (and person) and life will actually be interesting.
I know that I'll sit here doing nothing on the Internet when I'm not constructive yet the hours still fly on by. Realistically, I should realise when things won't get better, get up, go for a walk or play with my son. On the off chance I've done this in the past, I always feel more refreshed and can turn a previously crappy day into something positive.
But sitting on your chair, punishing yourself because you don't know what to do/code, isn't very effective in bettering yourself.
I hope that's what OPs point was. :)
You cannot, and should not, force yourself to sit in front of the computer non-stop just because you "should". You need to take those breaks too, they are just as important as the work you put towards mastering your craft.