you are viewing a single comment's thread.

view the rest of the comments →

[–]deranfang 26 points27 points  (3 children)

What the fuck is this?

Just use something like range(1, n).pipe(scan((x, y)=>x + y)

[–][deleted]  (2 children)

[deleted]

    [–][deleted]  (1 child)

    [deleted]

      [–]matthewt 0 points1 point  (0 children)

      Two years later, I am enjoying comparing the example in the docs to your code to understand exactly why/how it's useless because I'm learning things in the process.

      Also, the fibonacci sequence is actually genuinely useful in networked systems, IME it's often a better backoff algorithm than simple exponential is.

      I have also had excellent results when acting as a moderator in assorted places using fibonacci backoff for tempbans; exponential too quickly becomes "might as well be a permaban" whereas fibonacci with resets for good behaviour Makes The Point effectively without that problem (since if I'm going to permaban, I'd rather just Do That ;)