If I have a clear understanding of what I am building and it is a fun project, I can code continuously for 12 hours a day. The rest of my life typically gets upset if I actually do that for too long but I do enjoy long coding sessions like that. However, if I don't have clear goals or the coding is boring, I have a lot less stamina and sometimes I don't have anything to show at the end of the day. Also, I notice that my diet very much affects my stamina now that I am older so I try to reduce carbs and sugars for lunch so that I don't go into a daze afterwards. All of this is true with design meetings as well.
I guess at the end of the day - if I'm feeling productive, I can be productive. If I'm not, I won't. And... if I don't feel like I'm being productive, I have no compulsion on leaving, getting some fresh air, going home, or whatever is needed to re-energize, including taking off the rest of the day if need be. I complete my work and give my best so my manager trusts me to manage my time as needed.
If I have a clear understanding of what I am building and it is a fun project, I can code continuously for 12 hours a day. The rest of my life typically gets upset if I actually do that for too long but I do enjoy long coding sessions like that. However, if I don't have clear goals or the coding is boring, I have a lot less stamina and sometimes I don't have anything to show at the end of the day. Also, I notice that my diet very much affects my stamina now that I am older so I try to reduce carbs and sugars for lunch so that I don't go into a daze afterwards. All of this is true with design meetings as well. I guess at the end of the day - if I'm feeling productive, I can be productive. If I'm not, I won't. And... if I don't feel like I'm being productive, I have no compulsion on leaving, getting some fresh air, going home, or whatever is needed to re-energize, including taking off the rest of the day if need be. I complete my work and give my best so my manager trusts me to manage my time as needed.