Recursion, has established a very "troublesome" figure in my head since the first day it was introduced to me. Luckily it was not as I thought it would be initially as I eventually became familiar with this concept later on in the course. I very much liked the idea of the tracing exercise given in class which allowed me to actually developed a liking for this concept.
We were told by our professor that the purpose of recursion is not to make our code run faster nor does it allow code to use up less memory. The purpose of which, surprisingly is to make our code look simple and elegant.(lmao)
I never thought recursion was useful until assignment 2. When me and my teammates were doing the minimax functions we initially wrote our code in the most "expanded" method. Later we decided to try using recursion and substitute all the messy code that we wrote. We were amazed how much better and cleaner our code looked when we used recursion.
Further more, I've found that the tracing practices helped me improve my code tracing skill as well as writing codes. Overall I liked recursion a lot as it helped me improve my programming skill in general.
No comments:
Post a Comment