I don't code, but I do know that not eating sugar significantly improves my focus no matter what I'm doing.