FizzBuzz Part 1: Intro

I’ve been looking at these different solutions to the FizzBuzz problem. Larry Wall, the creator of the Perl programming language, said “Either a programming language fits your way of thinking or it doesn’t.” So maybe that’s why I like some solutions better than others.

I think this Ruby example is my favorite:

 

This CoffeeScript example is my second favorite:

 

Although this Python example is pretty readable, I think writing 101 instead of 100 makes me not like it as much as Ruby or CoffeeScript.

There’s plenty more examples you can look through. The Haskell examples can look pretty intimidating.

There was also an interesting discussion about FizzBuzz on Reddit.

Leave a Reply