Very often late night, sporadic sessions are a product of, "oh crap I have to get some work done! Time for coffee and pounding out as much code as I can."
Not saying you can't be productive at night, but real production comes from day in, day out routine and dedication to the work. It's not as sexy but it's the reality of the job.