Re:Controversial Programming Opinions (2012)
by phaemon on Friday December 04, 2020 @03:42PM
(#25307635)
The point of FizzBuzz is to see if the person understands the basic concepts of a loop and "if" tests. You're supposed to give them the modulo operator to ensure you're testing the right thing.
[ Parent
| on HN ]
Re:Controversial Programming Opinions (2012)
by fr2null on Friday December 04, 2020 @07:13PM
(#25310149)
I don't agree. I think a module operator is common enough that it should be known, and even if they don't know it, they should be able to quickly make a module function. (Something like a while loop that decreases value a with value b while a>b and returns a)
Re:Controversial Programming Opinions (2012)
by phaemon on Saturday December 05, 2020 @01:09PM
(#25316759)
You say you don't agree, but you don't disagree either. Perhaps you should know a modulo operator but that's still not what FizzBuzz is for. It's to see if the candidate has the most basic concepts of loops and tests.
Adding knowledge of a relatively obscure operator (can't remember the last time I needed it in real life) just makes it a trivia test.
Re:Controversial Programming Opinions (2012)
by Supermancho on Saturday December 05, 2020 @02:19PM
(#25317430)
Asking a candidate to describe 2 different ways to do modulo is an excellent interview question, imo.