Monday, 16 February 2015
Object-Oriented Programming
To start off on this topic, I actually had to do a little research on the definition since I wasn't exactly sure what to write about. Doing a quick search on wiki, I found that object-oriented programming (OOP), is based on data structures, and procedural code, which is our methods and functions. So how OOP works in the grand scheme of it all is the objects are basically pieces of gears that work together. For example, in assignment 1, we had the parent classes which had methods that provided the general structure for different kinds of games and the subclass which inherited the general methods from the parent class and also included the methods for Subtract Square and its AI. And together, they produced a fully functional Subtract Square game. A thing to note is that since the methods in the parent classes aren't specific to any games, it usually passes an exception. This exception allows the parent class to have the general structure without having any procedural code, since you need to have code according to a specific game, which is located in the subclass. Some functions that don't belong to a class are called module-level functions. These type of functions operate independently from any other class but may use functions from other classes. Usually these are helper functions that make our lives easier by implementing these helper functions instead of having to code the same lines over and over again. That's basically what OOP is and I hope to learn about the other OOP languages such as C++ and Java in the future.
Recursions recursions..
Recursions are definitely one of the trickier topics so far in this course. Not only is it hard to keep track of the arguments and parameters as you try to visualize the process, knowing when to implement it is also a challenge in itself. On the test, I lost majority of my marks on the recursion section which is a good indication that I need to brush up on my recursive skills. The labs are quite helpful when it comes to doing so, which I have to pay extra attention to for the next test. Another thing I find really helpful is the handouts that Danny does with us in class. I find that I am able to understand things better via demonstrations or examples shown in class and these handouts also causes me to engage in class and think about the topic at hand. I think with the handouts, labs, and a little bit of review, the next test shouldn't be too much of a challenge!
Monday, 2 February 2015
First Impressions! (Weeks 1 - 3)
Introduction to Computer Science... what a ride it has been already within the first 4 weeks! We had a malfunction with the projectors, resulting in what could've been no more than a 240p resolution, but that was fixed and now we have three bright screens glaring back at you, MS3153 has been a pain of a room but I guess I'll have to just make do. Danny is also a very interesting instructor, he definitely puts in the effort to learn students' names and get to know them, he carries a very approachable demeanour and his teaching style is very colourful with his hand gestures and in his documents you can really see it in his writing as well. He's a good instructor in my book, which you can't say about many instructors at this university.
Anyways, enough of my ranting, the course so far has been smooth sailing, this course literally picked up from where CSC108 left off so definitely what the instructors told us about having a solid background IS key. Classes and subclasses were definitely intimidating at first, but with the labs and assignment 1 forcing us to make use of them, they are now much more easier to comprehend. Speaking of which, assignment 1 was lots of fun to work on especially since to me it feels like you are piecing pieces of puzzles together (the classes and subclasses in this case) to complete a bigger picture (the game with an AI). Although I did procrastinate and ended up putting it off until the final week and almost had to work on this daunting assignment alone, not to mention I also had a midterm on the same day it was due! But good news is, I managed to form a group of three with two other individuals and hand it in on time and also had time to study. My teammates really pulled through for me there
The first term test is approaching quickly with only a few days to go! Tests are usually nerve wracking but we also get an aid sheet too, which is a huge plus and a confidence booster. I'm sure it's a piece of cake for everybody but I just want to get it over and done with! And with that being said, it's back to studying for me... Such is the life of a U of T drone.
Anyways, enough of my ranting, the course so far has been smooth sailing, this course literally picked up from where CSC108 left off so definitely what the instructors told us about having a solid background IS key. Classes and subclasses were definitely intimidating at first, but with the labs and assignment 1 forcing us to make use of them, they are now much more easier to comprehend. Speaking of which, assignment 1 was lots of fun to work on especially since to me it feels like you are piecing pieces of puzzles together (the classes and subclasses in this case) to complete a bigger picture (the game with an AI). Although I did procrastinate and ended up putting it off until the final week and almost had to work on this daunting assignment alone, not to mention I also had a midterm on the same day it was due! But good news is, I managed to form a group of three with two other individuals and hand it in on time and also had time to study. My teammates really pulled through for me there
The first term test is approaching quickly with only a few days to go! Tests are usually nerve wracking but we also get an aid sheet too, which is a huge plus and a confidence booster. I'm sure it's a piece of cake for everybody but I just want to get it over and done with! And with that being said, it's back to studying for me... Such is the life of a U of T drone.
Subscribe to:
Posts (Atom)