Re:Software development topics I've changed my mind on after...
by danjl on Wednesday February 05, 2025 @11:51AM
(#42951334)
I would prefer `somethingSec`, where "something" indicates the usage better than "time". E.g. `delaySec` or `elapsedSec`.
[ Parent
| on HN ]
Re:Software development topics I've changed my mind on after...
by creamyhorror on Thursday February 06, 2025 @04:03AM
(#42960504)
Same here - unit-specifying variable names like "delaySecs" and "amountBaseCcy" (where any possibility of ambiguity exists) are exactly what I enforce on our projects (when types aren't providing the guarantee). It makes avoiding and detecting mistakes easier, because you can immediately see where logic has gone wrong.