andrewducker: (Default)
andrewducker ([personal profile] andrewducker) wrote2020-06-19 12:00 pm
momentsmusicaux: (Default)

[personal profile] momentsmusicaux 2020-06-19 12:53 pm (UTC)(link)
I'd love to see some of the examples of the bad FizzBuzz code!

I reckon a lot of people (me included!) would trip up in the order of checking for multiples. You have to check for multiples of 15 first, because otherwise the condition for multiples of 3 or 5 will pass!
jack: (Default)

[personal profile] jack 2020-06-19 05:34 pm (UTC)(link)
I think if you understand that much you are probably fine. Even if you get the order wrong and have to fix it. I haven't done hiring, but I think the people who are getting this wrong are like, people who can follow the surface forms of being a programmer but just haven't done any actual programming, so struggle with even the level of "writing a loop and a conditional". Possibly being quite senior if they can tell other people what to do and not have to do it.

I googled for example of failure and it was interesting
Edited 2020-06-19 17:37 (UTC)