Actually anything natural, organic food is stimulating the body, while anything artificial, fabricated food is destroying the body.
So if you want to hack along with a sharp mind, keep your mind in shape by replenishing the body with what it needs. Period.
You could set up a test where you drank a pot of coffee and then did something insane, I assure you that you will still feel the effects of the adrenaline kick from the insanity.
Hackathons have their place. They are a good place to meet people and test new ideas. If you're expecting anything more, like I suspect the author does/did, then you are setting yourself up for disappointment.
I do agree about energy drinks though. Tea works for me. I drink coffee in a pinch. Mix those with sugar and I can say goodbye to doing anything worthwhile though....
Second, Red Bull or any caffinated beverage will attack your adrenal gland badly. Realy hard. Your adrenal gland is responsible for your adrenaline (duh) and gets triggered by the caffeine. So, it's not the caffeine that gives you a boost, but the adrenaline that gets released. Until it's gone, drought up, vanished. You can drink Red Bull till you die, but the adrenaline won't be there. Until you fix it.
You see, your body is a bank. A bank full of nutrient to be released when some other part of the body needs it. If you never make deposits, you won't get any interest either. If you only make withdrawals, you will end up with debit. If you continue you go bankrupt and die.
Healthy hackathons? I guess it's possible. I eat a lot of butter from grass-fed cows. I use omega-3 a lot and magnesium. My brains work much better and that without any caffeine. There are other supplements one can use, but always with moderation and enough sleep. Without sleep, your hormones won't get any rest or balance.
Hackers who think they have super powers and don't need sleep are having a Wall-Street mentality prior to 2008. Grow up, you only have one body, so you better take care of it.