I'm starting to wonder if avoiding caffeine or just letting myself become a regular coffee drinker is better for my productivity in the long run. I have noticed that coffee does give me a slight productivity boost, but I'm not sure if it's worth the tradeoff of becoming dependent on it.
You can be highly functional and productive without caffeine. Taking a nap and getting better sleep is far better then being addicted to coffee or pop.
Get citrus fruit on your desk, as well as bananas. That will keep you going for ages.
Pluses: I am alert, keeps me going for longer period of times then if I wasn't drinking it.
Minuses: I will crash where my body is just exhausted but I can't shut off my mind. I think some of that is normal with stress and being driven, but a lot of the reason is caffeine. I think it is the primary reason I have a hard time shutting down at night. I am sure there are others, but that is the key I notice.
I will also get a headache now if I don't drink some caffeine in say a ~12 hr period.
I am back to working out and hoping with that and drinking more water I will be able to cut out the caffeine more. I'd like to get it to none or very minimal.
Even worse, regular drinking makes you dependent on it, and, although I've been spared this one, stopping can lead to headaches.
I have noticed that some of the most successful programmers I know don't drink coffee at all. I think they also likely lead moderate lifestyles with the right amount of sleep.
Now, that said, the occasional use of coffee can be a great thing, in my opinion, for short term boosts. These moments might be for things like jet lag... that sort of thing. Also, it can be great for safe driving if you are tired. Used in this way, caffeine can be beneficial.
But mammals work that way, we have a sleep and wake cycle because in our average state we would be luggage. Similarly, many engineers have a few fruitful hours a day together with meetings and administrative things where sleepiness and passivity are better than awareness that could lead to aggressiveness and impatience.
My own experience is that colleagues that strategically drink lots of caffeine are good on new development projects. I would be more cautious on other roles as caffeine inhibits peripheral thinking. For example, on caffeine, you may too quickly discard causes in a core analysis or overlook a compatibility issue in a change. You may also make mistakes in new development but mistaken progress is on average better than over caution in new development.
My advice is to keep tabs on how much you're consuming and consider to giving yourself off days when there isn't work to be done. Definitely try and get a good night's sleep too (coffee late in the day isn't great for this, so worth keeping that in mind).
Most importantly, figure out what works well for you.
I understand very well how you might end up drinking a lot caffeinated beverages, but I wonder if you can have a placebo effect by drinking water and taking a quick walk outside instead?
I really like your water and exercise idea though, that would certainly be a nice substitute!
This produces two nice effects: (1) I have no caffeine dependency but still feel energized throughout the day and (2) the effects of coffee are stronger when I really need a boost.
I promise if you take care of your body your work will improve in the long-term.
When and whether to take in caffeine depends somewhat on your own situation. I am not a morning person. Morning caffeine helps a great deal as far as getting into the correct mindset, and I end up drinking a few cups of French press (or a double espresso) in the mornings and don't usually need to take any for the rest of the day. I sometimes take tea in the afternoon, but some of that is because I enjoy the break rather than a need to manage alertness.
I also worked previously at a company where half of the programmers would take an actual 30-60 minute lunch together everyday and this break in the middle did alot to help both the desire to be at work and actual productivity as there was rarely an "afternoon slump."
IMO, the best way to ensure productivity is to get enough sleep and take small regular breaks of ~5-10 mins every couple of hours, whether to get coffee/tea or just a drink of water and a short walk. A lunch break is also good if you can manage it. The mind works more efficiently if you don't force it to tackle too much at a time. Stepping away from the screen for a few minutes and just walking lets your conscious mind rest while still letting subconscious mind work on the problem.
I haven't tried drinking caffeine regularly enough that I can tell whether there's a productivity boost to taking it. I'd like to say I'm pretty productive -- previous job was ranking me in top review buckets for my pay grade(s) for multiple years.
One thing I've noticed is that I'm a morning person, my best hours are 8am-12pm. Most of my coworkers (coffee drinkers) are afternoon people. Not sure if that's a trend or just programmer biases. I have noticed that pretty much all of my caffeine consuming co-workers need to have their coffee before I can ask them anything mildly complex. That could just be ritualistic behavior (get into work, make coffee, don't think about work until then), but could also be caffeine dependency.
In my opinion, the idea that more work is better work is one of the great misconceptions of modern, Western culture (it's not a universal one, I know, but it certainly applies in a lot of places). If caffeine would allow me to do some not insignificant but not enormous amount more, but otherwise makes my life less pleasant through reliance on it, withdrawal symptoms, lack of sleep and cost, then I'm not terribly inclined to bother.
It helps counter any nervousness, restlessness, and jitteriness caused by caffeine.
Naps, exercise, and a healthy diet are a better alternative though. When you are using caffeine your productivity will be riddled with peaks and crashes.
I quit caffeine, cut out gluten, and even meats (except fish) and was more productive than ever, but eventually got back to old habits, but I do plan on quitting caffeine as soon as I can take a break from working for a week.
http://www.trinity.edu/jdunn/spiderdrugs.htm
Productivity is not the amount of work you produce it is how fast and well you achieve your goals. Worth remembering that too.
If you like coffee, drink it. If you have problems with insomnia, try cutting it. If it helps, there you go, you get to decide if coffee is more important to you than insomnia. Most people probably won't get insomnia from drinking coffee.
It has a milder, but longer lasting effect. It's also less likely to cause a 'violent' bowel movement :) .
Personally, I used to drink coffee day and night, while now I only drink tea after 7 or so, PM.