Re:When hiring developers, have the candidate read existing ...
by tisc on Saturday April 16, 2022 @02:30AM
(#31050085)
I like to combine those:
Having the unit in the name saved me more than once and having non-contextual constants for sizes increases readability imo.
[ Parent
| on HN ]
Re:When hiring developers, have the candidate read existing ...
by kissgyorgy on Saturday April 16, 2022 @03:08AM
(#31050267)
I do this instead:
const RESEND_DELAY_MS = 1 * 60 * 60 * 1000; // one hour
Essentially the same, but the lack of extra variable spares one jump. Also you can change it without introducing a new variable (no dependency).