How early should I be at the airport?

This is the most stressful question when preparing to leave for the airport. And what’s better: arriving early and dying of boredom or getting there...