Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would prefer `somethingSec`, where "something" indicates the usage better than "time". E.g. `delaySec` or `elapsedSec`.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: