I very rarely keep any code I write after 4pm.
Code I write after 4pm tends to be:
- of low quality
- riddled with mistakes
- and generally more trouble than it’s worth
I am a morning person, and I often start working at 6:30 – 7:00am.
By 4pm, my brain just doesn’t click like it does first thing in the morning.
I’m not saying there is anything magical about 4pm. 4pm just happens to be the point where my quality of work plummets and I tend to reserve that time for non brain intensive activities (like meetings).
Find your expiry date for the day, and listen to your gut.
If you feel like you are writing bad code, you probably are.
Don’t be afraid to let it go and start again with a clean slate tomorrow.