News for hackers. Stuff that matters.
Re:FizzBuzz in Too Much Detail by platz on Sunday April 26, 2015 @01:32PM (#9442504)
I still think the "Naïve" implementation is the best one given the actual specification of the problem, and not some made-up specification and assumptions that solve a different problem than the one actually being asked (which may be more interesting, but that is beside the point).
Re:FizzBuzz in Too Much Detail by simonw on Sunday April 26, 2015 @01:56PM (#9442606)
That was the conclusion of the article, if you scroll down to the bottom. "The final implementation represents a veritable explosion of complexity".
Re:FizzBuzz in Too Much Detail by placeybordeaux on Sunday April 26, 2015 @01:48PM (#9442561)
I thought that was the point of the article.
Re:FizzBuzz in Too Much Detail by doorhammer on Sunday April 26, 2015 @02:14PM (#9442685)
It was funny to me, because I immediately liked the second version most, but implemented as as function that takes the range of numbers I want to use. The only reason I liked that version more is because it "solves" common "problems" I run into when I'm screwing around with fizzbuzz in new languages.

Funny to me because I'm adding a layer of abstraction to handle specific issues I've encountered in the problem space for a question where the problem space is totally synthetic

But yeah, as it's asked, I think the first is the best answer to Fizzbuzz