The whole idea is pretty foriegn to me since we never really talked about it in my high school CS class. So when my professor first began talking about it, I really had no idea what was going on. But she emphasized that using recursion is vital in programming. You never need recursion technically speaking but it cleans up your code and saves a ton of time.
The other thing she emphasized was tracing the recursion within your code. This not only helps you find mistakes but also understand it better since everything becomes simplified when you are using recursion. This was also the focus of the lab in the tutorial this week which involved tracing functions with recursion.
This week's lectures and tutorials were particulary interesting in showing a method of creating functions that make quick work of complicated and nested inputs. Hard to grasp at first, recursion is actually relatively simple once you understand the core concept of what it does and it will make programming a lot easier.

No comments:
Post a Comment