3 ms·
If you can't do multiplication and you rely on a library for that. I feel sorry for you.
by TZubiri 2y ago
If you can't do multiplication and you rely on a library for that. I feel sorry for you.
- ornornor 2y agoMagic numbers something something. If your language provides it as a constant, why not use that? You’ll always get the correct value AND a descriptive name for free.
- jrockway 2y agoIt's really a matter of who's going to catch your typos. If you use the constant built into your language, millions of people are looking at it. If you type them into your throwaway bash script, nobody is going to notice you typed 60 * 60 * 24 * 356 to get a year's worth of seconds.
- nixpulvis 2y agoIf I have it I’d use it, but I’m not going to go out of my way to add another dependency for it lol.