4 ms·
All I've learned is I can't stand any code called "elegant."
by ursus_bonum 10y ago
All I've learned is I can't stand any code called "elegant."
- milesvp 10y agoProbably a valid complaint against code like this. In an organization with a lot of more junior developers I might strike this code in a code review as being non obvious. On the other hand, I trust this code more than similar basic conditional based fizzbuzz since there's no conditionals or nested logic to get wrong. It's also simple to extend, ie, a 'Bazz' on 7 requirement would be adding one more cycle to the mix.
- deleted 10y ago[deleted]