News for hackers. Stuff that matters.
Re:When hiring developers, have the candidate read existing ... by wonderbore on Saturday April 16, 2022 @02:26AM (#31050068)
Better yet:

    const ONE_HOUR_IN_MS = 3600000
    const RESEND_DELAY = ONE_HOUR_IN_MS
Re:When hiring developers, have the candidate read existing ... by mongol on Saturday April 16, 2022 @02:46AM (#31050166)
I don't get why this is better. My approach:

const RESEND_DELAY_MS = 3600000; // because TTL in Agora

Re:When hiring developers, have the candidate read existing ... by schobi on Saturday April 16, 2022 @03:08AM (#31050266)
I would even go for

const RESEND_DELAY_MS = 3600*1000; // because TTL in Agora

Easier to check for the right number of zeros

Re:When hiring developers, have the candidate read existing ... by mongol on Saturday April 16, 2022 @03:23AM (#31050358)
Yes full agree
Re:When hiring developers, have the candidate read existing ... by sigg3 on Saturday April 16, 2022 @03:04AM (#31050254)
I've used stuff like this to do:

const ONE_HOUR = 3600000;

const RESEND_DELAY_MS = 2.5 * ONE_HOUR; // because TTL in Agora

IMO it makes it easier for successor to fiddle with.