Friday, 31 January 2014

Excepting, Inheriting, Composing, Recursing

Exceptions

Exceptions seem to be solely for the convenience of the users, allowing them to know that something is wrong with their input. It's something that requires some out of the box thinking on the part of the programmer to correctly predict what kind of inputs users are likely to make as the programmer's testing of the program usually involve correct parameters.

Inheritance & Composition

This is quite straightforward. Inheritance allows one to append their own methods to existing classes, update the obsolete methods of the old classes, etc while making citation of non-original material a breeze. I believe that composition is like using the import function while inheritance actively overwrites the parent functions unless super() is called. One of the keystones of object-oriented programming as it gets rid of excess code and serves as a basis for further development of the program.

Recursion

I think this is a topic that's hard to visualize without it written down step by step. Everything is done almost backwards as you start from the inside and progress outwards. The examples and exercises themselves haven't been too difficult to comprehend just yet, but I feel that it will become mind boggling with real world examples or something similar.



Thursday, 23 January 2014

The Objects of the Orient(?)

After a 2 year hiatus from courses that require logic during my study at the Faculty of Music, the process of picking up programming has ranged from simple to excruciating. I can almost feel the rusty logic gears in my brain, where fungi most likely has long been cultivating, struggling to restart the turning. However, I forgot how satisfying it is to solve a logical puzzle - burning the midnight oil to finish off an assignment I couldn't get my head around, having everything click into place and finally getting the program running is simply exhilarating to a newbie programmer (until the crushing despair of realizing I missed an important instruction...).

Object-Oriented Programming

Object-oriented programming, from what I understand, is similar to having a template at hand so that a programmer can create things particular to that template easily and efficiently, doing some work now to save a whole lot of repetitiveness down the line. This is similar to the audio engineering course I'm taking, where a template contains the preset hookups to the pre-amp, reverberation units, the microphones, and others, to save the time otherwise taken up by the setup that will inevitably irritate the grouchy musicians you are recording. Many programs has been using such frameworks for quite a while now. Office programs provide templates, musical notation programs let you choose your favourite fancy and stylistic note heads and clefs, etc. Maybe the Classes developed early on in this course will be used in later assignments?



I want to make the blog pretty pls instruct much appreciate.