Monday, 24 September 2018

Recursion For Programmers

Recursion is a powerful programming technique. A function that calls itself recursively not only saves programming effort and avoids repetition but it can also be used to navigate complex structures such as Trees and Class Hierarchies. But recursion can also be quite hard to understand.

I recently published a course that explains recursion from the ground up. The full price is $45. But if you use the link below you can sign up for just $12! (Local taxes or EU VAT may be applied)

I’ve tried to explain recursion in depth in this course. Along the way, I also explain some important details of the computer architecture. You need to understand the stack, stack frames, variable scope and a few other details in order to get a good understanding of recursion.

I strongly advise you to try to write our own recursive functions as you progress through the course. My examples are all in C, Ruby or C#. But you can write recursive functions in whichever language you happen to be using. In fact, it would be a good exercise to try to translate my examples into another languages – Python, Java, Basic or Pascal, for example.

The courses includes numerous short sample programs to show how recursion works. There are samples written in C, Ruby and C#. However, you don’t need to program in those languages to follow this course. Recursion works the same way in all mainstream programming languages. This course explains the theory and the practice of recursion. You can use the techniques that are taught to write recursive functions in whichever language you prefer: C, C#, Java, JavaScript, Python, Basic, Pascal and others. The course is not about any specific language.

This is what you will learn…
  • What is recursion?
  • How variables are scoped in recursive functions
  • How recursive functions return values
  • The Stack and Stack Frames
  • Debugging recursive functions
  • Recursion v Iteration
  • Stack Corruption, and how to avoid it
  • Infinite Recursion, and how to avoid it
  • Recursing Fibonacci Numbers
  • Recursing a Class Hierarchy
  • Trees and recursion
  • Navigating subdirectories recursively
Here are two sample lessons from the course…

Sign up before the end of October 2018 to get this course at a 73% Discount...