I think in education it is also important to take "wrong" approaches to learn why they are "wrong" and what possible solutions are. If you just teach the "good" examples students might not realize why the naive approach to Fibonacci is problematic.
In other words you might want to teach naive recursion before you teach tail-recursion.
View all comments
Show parent comment
6
u/robin_888 Oct 14 '26
I think in education it is also important to take "wrong" approaches to learn why they are "wrong" and what possible solutions are. If you just teach the "good" examples students might not realize why the naive approach to Fibonacci is problematic.
In other words you might want to teach naive recursion before you teach tail-recursion.