Finding a Personal Coding Trifecta
jammag writes "For Seinfeld's George Constanza, his dream of the ideal moment was having sex while watching TV and eating a pastrami sandwich. He called this Nirvana state 'The Trifecta.' Developer Eric Spiegel adapts this concept of Nirvana to the act of writing your best possible code. He examines all (or most) of the possible things that might contribute to the 'The Trifecta' for developers — food, beverages, time of day. Spiegel also describes his personal Trifecta."
1) Very large glass of water (I'll lose concentration shortly after it runs out)
2) Relative quiet, not many people walking around or making phone calls.
3) My favourite coding music (psytrance or futurepop, depending on my mood)
Also important
4) Knowing I'm unlikely to be disturbed, and that I'm not being watched.
5) No imminent deadline (be that the project deadline, or the told-Ben-I'd-go-to-the-cinema-at-7 deadline).
6) Some fresh air and exercise (cycling to work, and walking round a nearby public garden/park at lunchtime).
I think most important is
0) A good sleep the night before.