Live data from Hacker News

Fifty Fizzbuzzes

vihart.com

41–50 of 64 posts

Re: Fifty Fizzbuzzes

#41

I like this idea. I find it fascinating how many developers I've interviewed who still have not come across FizzBuzz, and how many of those cannot solve the problem. Some of the more interesting interviews I've given though have been with people who know the FizzBuzz problem, where I ask them to make the worst possible version of it that they can. It turns out to be more difficult than they think it will be, and a de…

Can't solve because they weren't actually programmers or more because of deer in headlights?

Re: Fifty Fizzbuzzes

#43

I feel like everyone leaving a fizzbuzz solution in the comments of this post is missing the point of this article...

Fizzbuzz does that to some people. It's a mind-control meme, and a very powerful one.

Re: Fifty Fizzbuzzes

#44
post #4

Vi's site is down from the onslaught. In the meantime, enjoy the ever-classic Fizz Buzz Enterprise Edition: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...

Not too long ago I had to deal with C# in the same style, which reminded me of it; and not surprisingly, there's also a C# version:

https://github.com/jongeorge1/FizzBuzzEnterpriseEdition-CSha...

Re: Fifty Fizzbuzzes

#45
post #28
post #4

Vi's site is down from the onslaught. In the meantime, enjoy the ever-classic Fizz Buzz Enterprise Edition: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...

I opened the link thinking ”hah, what a gag!” But then I thought it’d be funny to try to find the core fizzbuzz logic. Turns out that it hits way too close to home, I just got really annoyed. Not sure what I expected.

But then I thought it’d be funny to try to find the core fizzbuzz logic.

The point is that there is no "core" logic anymore. It's been broken down and spread out over a dozen files, each of which does "one and only one (tiny) thing" according to the "best practices" of problem decomposition. Then all the pieces are glued together again using design patterns.

Re: Fifty Fizzbuzzes

#46
post #28
post #4

Vi's site is down from the onslaught. In the meantime, enjoy the ever-classic Fizz Buzz Enterprise Edition: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...

I opened the link thinking ”hah, what a gag!” But then I thought it’d be funny to try to find the core fizzbuzz logic. Turns out that it hits way too close to home, I just got really annoyed. Not sure what I expected.

It does hit close to home. I've seen all that code in one form or another. The "adapter" that ignores exceptions made me chuckle though. But like enterprise code I've seen before I have no chance of finding that class again although I am sure it exists.

Re: Fifty Fizzbuzzes

#47
post #21

Earlier quoted context omitted.

Using WordPress is "over-engineering"?

Yes

WordPress should include a cache switched on by default then you have to turn it OFF as an advanced setting. That'd be good for performance and the environment :-)

But using Wordpress is no more overengineering than buying a car. (Versus building your own 2 stroke engine because it's simpler).

Re: Fifty Fizzbuzzes

#49
post #4

Vi's site is down from the onslaught. In the meantime, enjoy the ever-classic Fizz Buzz Enterprise Edition: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...

Also FizzBuzz in TensorFlow: http://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/

I wonder, and hope, that this really happened.

Re: Fifty Fizzbuzzes

#50

Here's mine: Array.from(new Array(100)).forEach((_, i)=>++i&&console.log(((i%3?"":"Fizz")+(i%5?"":"Buzz"))||i)) https://twitter.com/tracker1/status/1045475226128007169

I just committed a version that works in my golang BASIC interpreter:

https://github.com/skx/gobasic/blob/master/examples/15-fizz-...

Perhaps not the cleanest, since I support neither `CASE` nor `ELSE IF`. But it seems to be correct.

Post reply on HN