The transition from CSC108 to CSC148 was sort of smooth. This course picked up right where CSC108 left off, with classes and object orientated programming. The very first week's lectures reviewed constructing a class. The professor described the __init__ method more in-depth. I felt that the point.py example helped me get back into pace after the long holiday break. One thing that I noticed was that taking notes on paper for this course may not be as effective as for CSC108 and CSC148, since it is much more programming intensive. Since I did not want to haul around my laptop, I decided to continue through the course with paper and pencil. An approach I used was to take note of some important details of the examples given, then attempt them on my own time when I'm in front of my computer.
I was surprised by how early we got our first assignment in this course compared to my previous computer science courses. Apparently, we were able to complete the assignment with our knowledge from CSC108. However, I decided to wait a few more lectures before starting on it. This worked to my advantage since the professor gave us more hints and clarifications during each lecture. However, soon it seemed that at least half of the lecture time was devoted to answering student questions regarding the assignment. At first, some very important questions were answered, but it soon got to the point where the same questions are reiterated. In the end, the assignment went well.
We also talked about recursion during week 3. Unlike some people, I actually had no idea what recursion was until just now. It seemed weird to me that a function can call itself within itself. At first, I thought that this would just be a great way to run into infinite loops but the worksheet quickly dispelled that idea. By making use an if structure, the function can be defined to take care of all cases in an arbitrarily deeply nested list. After applying a few examples, recursion suddenly seemed easier.
No comments:
Post a Comment