YOOOOO so yeah it's me again. How's everyone doing in this week? To be honest to you guys, I skipped today's CSC148 class because I just had a midterm tonight and I spent my whole day studying in the library. I did ask my friends for the notes though so that I won't be falling too behind. So this week basically we just dived deeper into recursion. The professor showed us a few examples to help us understand what recursion is and how does it work.
Recursion to me is a SUPER hard concept!!!!! I don't know if it's just me or not but my mind still sticks to the high school programming where I just use a while loop or for loop to do everything. Although recursion works just like loops but I found it quite hard to understand. The hardest part is to find out where should I call the program again so that I can get the outcome that I want. I know that recursion will be very important for future programming so I better work harder to understand that.
I found that the turtle example that was shown in class very interesting. When the professor showed us how the program works, I was just so fascinated by it. Although I still can't understand all the of the codes in that program, I did realize the strength of recursion and how much it can do for us. The prof also talked a little bit about inheritance, which is a property in Python that allows us to make a sub-class under a class. The sub-class "inherit" all the functions in the main class, meaning that all functions in the main class can also be called in a sub-class. This is a great news for lazy people like me because when I'm writing a new class that is very similar of another class, I don't have to write the functions all over agian.
That's it for now. Come back next week for more updates on how I'm doing in CSC148