Friday, January 30, 2015

Impressions of First Three Weeks (Week 4)

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.

Wednesday, January 21, 2015

Why Geeks Should Write (Week 3)

I personally believe that computer scientists, and everyone alike should be able to write and communicate in some form of human language. The ability to write not only allows one to formulate more coherent comments when coding but also allows one to properly communicate to their employers and employees and other people relevant to their project. It is rare to think that someone would be working on programs all alone throughout their entire lives, therefore communication is very important. Since we are computer scientists, we would definitely prefer communication using our computers. By being able to write properly, we can get our ideas and points across to people that are on the same project as us. It would be very difficult and tiresome to write code as a team if no one could understand what others are writing because they left out all the comments and docstrings.

Another reason computer scientists should write is because documenting one's work could be very important for future uses. Since we have such a limiting memory capacity, before long, we will forget things, even important things. To make sure we will never forget the most important things, we should write them down and perhaps store them inside computers, which have a much better memory than us. For when we wish to retrieve information about our projects years ago, we will always be able to access them.