News for hackers. Stuff that matters.
Re:Perl code that is syntactically correct only on Fridays by zaphirplane on Wednesday February 16, 2022 @09:04PM (#30368700)
Using the same time from the start of the whole operation doesn’t sound broadly right, I’m thinking deadlines retries expire logging
Re:Perl code that is syntactically correct only on Fridays by chii on Wednesday February 16, 2022 @09:26PM (#30368831)
you pass around a time provider module, which you can (and should) mock in tests to ensure that nothing catastrophic happens if time drifts in ways you don't really expect.