|
|
|
|
|
by doix
238 days ago
|
|
> Fizz-buzz is a difficult problem. There are a few different ways to solve the problem and every single one has some uglyness about it that should make a qualified programmer squirm and hate their answer What are you talking about? The question is basically just a gotcha to catch out folks that don't know about the modulo operator. Or is this satire and I completely missed the joke? |
|
That you cannot find a an elegant solution to what seems like it should have one is what makes it difficult. A good sign of a good programmer is then you ask them about their code after it works they will say they don't like this solution and would like to spend time making it cleaner. If you know there isn't an elegant solution of course you won't bother spending that time, but if you don't know that if seems like there should be a better answer if you can just restructure the code a little.