@djlink Back in graduate school, I established a personal rule that I would never program past 10:00PM. A number of colleagues suggested that this limited this productivity, but I learned that any code written that late would almost certainly be torn out and rewritten when viewed with fresh coffee in the light of a new day, so you may as well just stop early.