I agree with the caffeine comment. Believe it or not there is a balance when it comes to coffee. Having a cup of tea/coffee every day is not the same as having a cup every 2 hours. As in everything, it is not strictly an on/off switch.
Other than that I totally agree that sleep exercise and food make a great difference. Eating fat with carbs for 3 meals a day will not help you get the mental focus either.
I took it to mean that the author is either on or off with such things, and couldn't merely cut down. I'm the same way. One cup of coffee a day is an impossible dream for me, I'd have to totally quit instead.
If you are in an environment where there is decaf coffee I suggest mixing half caf/half decaf. You cannot really taste the decaf and get in half the caffeine, although it's not a real fix, it should help a little :)