Monday, 30 March 2015

Week 8

That week was easy to understand conceptually and a little more difficult to put into practice.

Binary trees and binary search trees are extremely simple concepts; you start at one node and you have the choice of going to either of the two children of that node. This is essentially a specialized Tree class so the idea should follow very easily. Binary search trees are slightly more complicated, in that they are organized in such a way that is very easy to search the tree for the item that you are looking for. (From what I understand though, generally most concepts are easy to visualize and communicate to other people than it is to actually implement in software.)

In practice however, I find binary search trees are slightly more complicated. This is because the code for the searches are more specialized and do not simply traverse the entirety of the tree. Again, this is not very complicated but it does add some depth to the issue.

Sunday, 8 March 2015

Object Oriented Programming (OOP)

I think that Object-oriented programming is a really cool way of programming. The idea of separating huge portions of code into abstract data types/objects makes a lot of sense and I think I would find programming to be much more difficult if this wasn't the case.

Having code spread out into multiple sections makes the code much more legible and makes it easier to find sections of code that need to be debugged and added to. Instead of searching through an entire wall of code to find what you're looking for, just open up the object that you need to edit; simple as that.

Object-oriented programming also allows for multiple instances of objects to be created with identical properties and can allow for more specific objects to be created with properties inherited from the super-class. This makes for some really flexible and compact code which is not only practical, but enjoyable to work with as well.

I look forward to my future projects with object-oriented programming.