I've had to take various contract gigs where I had to start my commute at 7, or be at meetings that started at 7, and it's terrible. Employment arrangements like this wind up getting a version of me that is at my lowest, least-focused, least-productive ebb, no matter how much coffee I pour down my gullet.
These days I still get my best, most focused programming work done between about 4:30 p.m. and 8:30 p.m. It's a constant strain because it means my time at home with my family is foreshortened every single weeknight.