Wednesday, 22 January 2014

Week 3: Object Oriented Programming

Hello people! Welcome to my csc148 blog. I've been thinking allot about what i should be writing in this post, and i must say it was really hard to come up with anything. I've jumped up from 108 from last semester, but my real programming knowledge come from c#.

Anyhow, these few weeks we worked on Object Oriented Programming (OOP). To be perfectly honest, these are some concepts i already grasped from c#, so i didn't have any problems understanding the professor.

So, what is OOP? OOP is a programming language model. Programmers focus on on objects, instead of just functions and procedures. Believe me, this makes life allot easier. What is an object? Or rather what could be one? It refers to an instance of a class (a class being anything you want it to be!). Hmm mm, what could you possibly gain by doing this and not get by directly programming the logic, ignoring all this gibberish about object? Well the answer is pretty straight forward. Structure and organization. You can easily modify each aspect of your code without affecting other parts (that you want to stay the same of course and you also wont have to start from the beginning if you mess one part up) not to speak of the clarity and quite readable style that your code will have (so you don't get those headaches scrolling though your code trying to make something of it) . Also, each part of your code is reusable (without using copy paste).

Anyway, since i assume all of you already understand OOP, i didn't go into much detail. Looking forward to recursion because i really like it (even though at times it can be very confusing and impossibly hard).

See you next week!

No comments:

Post a Comment