i strive to write code that’s readable enough not to need code comments… but when you’re dealing with time and duration, it’s really difficult to keep things straight. i’ve been working with time a lot as i work on FireHydrant’s upcoming on-call product, and something i’ve been adding a lot to my code that deals with time is visual comments. for example, take this test about requesting coverage. the intended result is visible at a glance without having to juggle eight timestamps in your head!
Highland / Denver / CO 50°F and cloudy (AQI 15 )