Sunday, 1 February 2015

SLOG #2: Classes and classes

Hello again!

This still isn't too technical of a post (I'll likely get more technical very soon) but I'd just like to cement what the difference in learning from CSC108 and CSC148 has been like for me so far. As far as Object Oriented Programming goes, the class and subclass expectations are much more in keeping with the world of actual programs and so on. For the most part it's a fairly simple concept making a lot more sense than beginner programming, which involved uber-specific programming implementation.

Assignment 1 is a good example of this change.

Wheras essentially just the final assignment of CSC108 was about multiple class/file design, 148's first assignment has involved ADT (Abstract Data Types) from the get-go and offered vast leniency on how precisely the job was to be completed. This makes the project harder and easier to complete at the same time, because now as a coder there is room for your own personal discretion but also a lack of hand-holding that the simplicity and specificity previous code projects had to make themselves less challenging. Both of these changes are good. It makes the work more satisfying.
Here's an example of what I mean:

Let's say you have a scrambled Rubik's cube, and a guide for unscrambling Rubik's cubes.

Scenario 1: The guide has the exact movements for each possible scrambling (it's a stupidly big book) and following the steps for the scrambled cube results in your Rubik's cube being solved.
Scenario 2: The guide explains the methods by which a Rubik's cube is solved, by offering information that applies to all possible or most common issues in solving the cube.

Which scenario is more satisfying? Definitely scenario 2.

Following instructions can be fun, e. g. a Lego instruction booklet, but when faced with a challenge it is more enjoyable to see yourself understanding and actually learning how to approach different parts of the problem to solve it based on knowledge, experience and savvy. e.g. being able to solve a Rubik's cube and so on. I guess what I really wanted to do here is share why I'm enjoying and pursuing Computer Science. Once you learn something in this subject it is execptionally enjoyable to implement and usilise it on other problems, precisely for the reasons I've stated above.

Cheers,
ES

No comments:

Post a Comment