Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Challenge: Simple algorithm for continuing series of integers

by dragonchild (Archbishop)
on Oct 20, 2008 at 17:21 UTC ( #718262=note: print w/ replies, xml ) Need Help??


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:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?


Comment on Re: Challenge: Simple algorithm for continuing series of integers

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://718262]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (20)
As of 2015-07-29 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls