2 ms·
I always thought “fizzbuzz” was sort of an obnoxious “gotcha” sort of test - it’s actually a test of whether or not you're familiar with the “%” operator. I wo
by commandlinefan 7y ago
I always thought “fizzbuzz” was sort of an obnoxious “gotcha” sort of test - it’s actually a test of whether or not you're familiar with the “%” operator. I wouldn’t have a problem with it myself, but I can easily imagine spending an awfully long time coding without ever coming across a modulus operation, especially if you didn’t have a CS/math type background. OTOH, I posted on here a few weeks back that I had a co-worker who expected candidates to come up with the binary search algorithm in an interview setting, which I thought was unreasonable, and most of the commenters thought I wasn’t being harsh enough… maybe I have low standards?
However, we can talk about overuse of the “singleton pattern” abomination…