Wednesday, January 27, 2016

sLog Week 1

This is my first sLog post on CSC 148 at University of Toronto, the goal of sLOG is to make it a milestone while I am learning computer science instead of computer programming. The past three weeks taught me a lesson that we are now in CSC108 any more! The whole course is not all about coding or programming like what I have learned last semester. The first week our professor showed us how to design a class to solve specific problems. For starter I have already been familiar with init, str, and eq, these are basic elements of a class. And then it is time to design. On the lab in week 2, we are asked to create a class about race registry. Before that lab I didn’t have a chance to write my own code, and to be honest, I panicked when I realized that I have to finish the assignment in 2 hours. But luckily our TA said it is a group work, so I am lucky enough to find someone who was willing to carry me. With his help, we begin to work quite fast, using “add” to add runners and “find” function as a filter to find out different people under various categories. At the end of the lab there was a small quiz, I thought it was easy because it only requires a init function. However I forgot to put on all the types, this one is definitely not a good start.