News for hackers. Stuff that matters.
Re:Python Is Eating the World by pmontra on Monday August 12, 2019 @04:02AM (#20673437)
I've been working since the 90s and I never attempted to do FizzBuzz. Is it really relevant? Maybe to screen junior developers out of college?
Re:Python Is Eating the World by estsauver on Monday August 12, 2019 @04:55AM (#20673684)
So, as someone who spends maybe 20% of their time hiring, it's still a very effective screen. You wouldn't believe how many people can't do it. People at big companies, respected places. It's surprising.
Re:Python Is Eating the World by mooreds on Monday August 12, 2019 @05:42AM (#20673901)
Wow, that's depressing.

I used a different screen (having people make change based on an arbitrary amount, so if the input was 81, you'd return [25, 25, 25, 5, 1], as we were in the USA) and it was also helpful. I didn't track the number of people that it stymied though.

Re:Python Is Eating the World by t0mbstone on Friday August 23, 2019 @12:30PM (#20779240)
That sounds like a really fun one, and isn't dependent on people knowing about the modulus operator (which is rarely used)
Re:Python Is Eating the World by estsauver on Monday August 12, 2019 @09:54AM (#20675392)
Yah, that's also a good one. I like the variant that asks how many different ways you can make change for a given amount and a given array of currencies.

(I always feel weird talking about interview questions publicly, but honestly anyone who prepares that diligently deserves to go to the next stage. If anyone's reading this because they're preparing for an interview with me and I ask this question, just mention this comment and I'll be impressed.)

Re:Python Is Eating the World by singletoon on Friday August 23, 2019 @06:03PM (#20783136)
Correct me if i 'm wrong, isn't this one 'for' loop with 3 nested 'if' conditions ?
Re:Python Is Eating the World by x3n0ph3n3 on Monday August 12, 2019 @01:50PM (#20677973)
If someone can't do FizzBuzz, I'm not going to waste an hour interviewing. I get a surprising number of non new-college grads failing to do it.