3 ms·
But that still using a magic number, so obviously you should do something like this: const TIMEOUT_SECONDS = ONE * HUNDREDS; The definition of ONE and HUND
by gpderetta 5y ago
But that still using a magic number, so obviously you should do something like this:
const TIMEOUT_SECONDS = ONE * HUNDREDS;
The definition of ONE and HUNDREDS is left as an exercise.
Snark aside, the rule zero of all coding conventions is that they should not be applied if they do not make sense in a specific case.
- unnouinceput 5y agoThe "bla bla" explanation will suffice. Usually will include a link to documentation, no need to further split the hair