in reply to
Challenge: Simple algorithm for continuing series of integers
The '*' idea is absolutely horrible. Nice in theory, but will suck in practice. If it's implemented, it should be in terms of well-specific sequences. No derivations possible. If the sequence isn't one of the 20-30 that are listed in the manual, then that should throw an error. My reasoning goes like this: How do you know what the next element of 1,1,2,3 is? What about 1,1,1,3? 1,2,4 also has dozens of options. There's just too many possibilities for mistakes.
Remember - predictability is good. Guessing is bad.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?