2 ms·
FizzBuzz suffers from the StackOverflow fastest fingers on the internet problem, it favors cursory poorly engineered solutions. By which I mean what is FizzBuzz
by brudgers 11y ago
FizzBuzz suffers from the StackOverflow fastest fingers on the internet problem, it favors cursory poorly engineered solutions. By which I mean what is FizzBuzz supposed to do if IO blocks because stdout got redirected to a resource that's not available?
When the code the interviewer wants to see has IO operations spaghettied throughout the business logic rather than separated as a concern, is the exercise selecting for people who are perfectly willing to do only what is asked rather than what is needed?
How many lines of code would FizzBuzz really be if we were serious about it as Engineers?
- jameshart 11y agoSo.... you really are trying to avoid writing any code, then?
- brudgers 11y agoI wrote and published a FizzBuzz about a year and a half ago when applying to Hacker School. It's pass by reference available on Google. The technical thrust of my first comment largely reflects what I learned from the exercise. The IO and crosscutting concerns in my second comment are a reflection of more recent additions to my understanding of software systems and the exercise of rethinking FizzBuzz brought them to the surface. The simplicity of FizzBuzz's business logic should not be seen as indicative that our computer systems are suddenly likewise simplified. Odds are you're not hiring people to write strings to the console.