Friday, 31 January 2014

Week4

This week, we covered a lot of materials about recursion during lectures. Our professor used the class Turtle and Stacks to explain how recursion works. In csc108 last semester, I learned about nested list. I think this week's lecture was somewhat like a continuation of materials taught in the previous course. An interesting point I saw in the Turtle class example was how recursion actually looks like. This visual demonstration helped me understand the concept clearly. Also, one important lesson I learned is the importance of restricting the loop, preventing it from looping around infinitely. At first, it was a bit difficult to trace each examples the professor noted on the slides. Though, just as the professor mentioned during the Wednesday lecture, the difficult part is just the first trial understanding how the recursion code works; the second and third tracing was easier compared to the first. Apart form lectures, exercises and lab mostly focused on the inheritance and raising exceptions. I was able to complete exercise without a problem. One this I should improve is the consistency of the coding style, coding on my own rather than depending too much on the examples posted on lecture slides/Google.

Thursday, 23 January 2014

CSC148 Slog: Week 3


During the first class of the week, the professor mentioned,"a class as a blue-print/factory, a blue-print/factory for making objects." This expression was an introduction to a course material we covered in CSC148 course, the object-oriented programming. Indeed the focus of the labs and exercises was on the computer programming in relation to creating new classes. Earlier, I had a little difficulty distinguishing major nouns and the verbs of a context. I could not translate directly from an abstract data types to a Python code. So, the biggest challenge was planning how to go about solving this problem. Though, after attending lectures, I noticed brainstorming, a must-do task before creating a convenient program, required the basic analysis skills and that this basics is critical to computer science students who are asked to write a right code, a code that does what we intended. In Brief, the main point I learned through object-oriented programming is how Python class attribute and method can work in relation to a given set of context/problem. One thing I could improve later is the efficiency and functionality of a program.