pyricau/foobarqix-itsetyydytys — comment on commit 681667fb568c1bf8a5bc303d66b968ce6e6c867d
File: xiqraboof/src/main/java/com/itsetyydytys/osef/NumberProcessor.java line 14
By fbiville:

Héhé, kinda :P

We wanted to avoid division and modulo as most as possible, especially for big numbers. So yes:

* this is not coherent, 'cause we use modulo for 3 and 7 ;
* the original exercise specify a range from 0 to 100 only.

Anyway, this really is a rough first version of the code, far from being perfect. No beautiful or efficient code here.
The main goal of this first iteration has been to focus on the tests and try not being too specific (like, for the most extreme example, hardcoding the answers from 0 to 100). We're now armed enough to find cleverer implementations and submit a final version ;)