From Compsci.ca Wiki
Caffeine, like Food, is a key resource that programmers turn into code. There is a forumla for determining how much food and how much caffeine it takes for each line of code, but that forumla has yet to be perfected.
A chart of the happiness content of various drinks can be found here.
Some great caffeine related products can be found at ThinkGeek.