Michael Douglas Brett - Web Development

Hi, I'm Michael. I'm a front-end web developer based in the UK. This is my site.

No Stairway! Denied!

FEDIQ JavaScript CSS

Apr 7th 2016

A short-but-sweet FEDIQ hit today:

'Create a for loop that iterates up to 100 while outputting "fizz" at multiples of 3, "buzz" at multiples of 5 and "fizzbuzz" at multiples of 3 and 5'

Yup, it's FizzBuzz.

The FizzBuzz Test is probably one of the most famous development interview assessments, and definitely one of the most controversial. It is meant to weed out applicants that can't think in a programmatic way (and is held, anecdotally, to be able to clean out 90%+ of candidates), but I'm with Jeff Atwood when he describes FizzBuzz as the programmer's stairway to heaven. You can find solutions all over the web:

There's not much more I can add to this, though I find it interesting that in the FEDIQ version they give a tiny bit of the game away by asking for a for loop.

As FizzBuzz is mainly used in the interview process, here are a couple of articles (both widely read at the time of their publication), looking at FizzBuzz from slightly different - possibly oppositional - perspectives:

FizzBuzz is dead! Long live FizzBuzz!.

Tales of a Non-Unicorn.

Next time: What are data- attributes good for?