3 ms·
What this article misses is my favourite bit: maintainability and extensibility. If this were real code two things would happen; 1. Someone would refactor the
by matthewrudy 11y ago
What this article misses is my favourite bit: maintainability and extensibility.
If this were real code two things would happen;
1. Someone would refactor the `fizzbuzz_word(n)` method and this would all break
2. Your PM would ask for a new feature "multiples of 7 should be said 'Wuzz'"
So that 2 minute test becomes a 10 minute venture into real world problem solving.