Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 rifling through the Monastery: (5)
As of 2014-12-18 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls