| ▲ | Terretta 2 hours ago | |
The article conceit is fantastic. That said, is the going-in algo wrong? I see a case for 3 * 5 in here:
Why?If we add 'Bazz' for mod 7, are we going to hardcode:
Or should we have done something like:
I've been told sure, but that's a premature optimization, 3 factors wasn't in the spec. OK, but if we changed our minds on even one of the two factors, we're having to find and change 2 lines of code ... still seems off.Sort of fun to muse whether almost all FizzBuzz implementations are a bit wrong. | ||
| ▲ | 2 hours ago | parent [-] | |
| [deleted] | ||