2 ms·
I use it all the time to print out a message every 1000 iterations in a loop so I can see what's going on without flooding the output. I suppose you also don't
by mseebach 10y ago
I use it all the time to print out a message every 1000 iterations in a loop so I can see what's going on without flooding the output.
I suppose you also don't often use division in your non-mathy web work. Despite that, would you think it unfair for an employer to think it reflected poorly on you if you couldn't write code to divide two numbers?
- busterarm 10y agoHeh, funny you use that example. Division operations have a lot of gotchas in many (most?) languages. That's exactly the kind of thing that I expect to see used in a stupid programmer challenge meant to test esoteric knowledge > ability.
- mseebach 10y agoDon't move the goalposts. It's about knowing at all, not knowing about gotchas. But hey, even then, those gotchas overlap with why you shouldn't store prices in floats and devs you don't want to hire do that all the time too.