Earlier quoted context omitted.
I'm really glad you mentioned "cute little puzzles". I am sick of them. I'm not really sure who has sufficient time to spend blazing the employer with feats of their programming prowess (I was going to say only undergrads would do that - however, many undergrads in top programs have little time to bathe). If this was big companies being stupid, I'd get it. The HN crowd ... some of the smartest hackers around do littl…
Maybe I'm just incredibly naive, but are fizzbuzz tests really that necessary? I have a hard time believing anybody could get an interview, let alone graduate with a BS in compsci, without being able to do something THAT simple ....
The guy was writing some really weird stuff. When asked to explain, he confidently told us that in C++, every time you reference the iterator variable inside the loop, it gets increased. His solution was something like:
for (int i = 1; i
(except I'm pretty sure he didn't get printf right)So, yeah, I see FizzBuzz as a wonderful way to weed out the incompetent right away, allowing you to focus on deciding whether you need capable or exceptional.
Incidentally, one of the guys on my senior project team in college didn't understand how variable assignment worked. He would write:
int flagsVar = COMMON_BASE_FLAGS;
flagsVar = ADDITIONAL_FLAG_I_WANT;
CallAPI(flagsVar); // Why doesn't it work?!
He graduated.