3 ms·
The only hardcoded numbers in code should be 0 or 1. Anything else, like 5, is a smell.
by skookumchuck 8y ago
The only hardcoded numbers in code should be 0 or 1. Anything else, like 5, is a smell.
- quickthrower2 8y agoIt depends, hard coding 12 as in months in a year is fine. Best to do it through a named constant though.
- nuclx 8y agoDepends on the domain.