I'm so over Fibonacci demos. It's become the Northwind database of algorithm examples.

Maybe a Rubik's Cube solver as a change of pace, perhaps?

  • 1
    fibonacci simple andin every language usable.
  • 1
    I taught my 4yo the Fibonacci sequence. It’s bloody easy.
  • 0
    @stop oh, for sure. Just overused at this point, even when it doesn't need to be. Almost as frequent as using the flu or cancer examples when teaching Bayes' Rule.
  • 1
    @Root Agreed. But maybe in language docs or tech books use a deck of cards or some other example. Maybe.
  • 2
    fib = 0 : 1 : zipWith (+) fib (tail fib)

    Why wouldn't you want Fibonacci demos, they're short, elegant, and can demonstrate a lot of language features. Plus there are so, so many ways to generate the series and implementat said generation algorithm.
  • 0
    @RememberMe I'm not doubting their effectiveness, terseness or simplicity...they're just overused to the point where they lose the "oomph" they used to have in tech demos and books. Just like Northwind - we all memorized the schema and table structure so much that examples got routine and boring.
Add Comment