Object Oriented Programming(OOP) is a very clever development method in python. We were introduced to it in CSC108 but didn't get much practice. Since I had come into this course with no previous experience in programming whatsoever, I feel it is a little bit harder for me to understand this then most. Personally, I think I'm doing good and understand almost everything. Getting my head around the ideas of programming was pretty tough. But with dedication and hard work, I learnt how everything has been working so far and have spent a lot of time understanding those things which I was confused on. From one of the things which was very confusing and I didn't pay much attention to was OOP. But, I've started the assignment 1 and have started to get the hang of it.
What is OOP? In easy words, OOP is a programming paradigm with objects at the very base with their associated functions. It is a group of objects (known as class) which work together to make a program do specific functions. OOP is very useful when working on a massive project. The work can be split into different parts and divided between people. Each person can work on his or her part and then they can put each part together to make a functioning program. OOP is like a body; the body has separate parts which function in a different way and work together so that the body can run normally.
In OOP, you can also inherit old properties from a different class. This is very useful when you want to make a class with similar properties as the old one but want to add a few extra features. This is better then copying and pasting the whole code because then every time the original code is changed, you would need to copy that code into the new one. This method is known as inheritance.
OOP is an amazing concept and I'm still trying to wrap my head around it. Ever since I have started my comp sci course, I have always wondered how much code must have to be written for us to be able to use such simple everyday programs. You're reading this now so you're most likely a TA or professor so you have a general idea but for my fellow classmates reading this, just imagine! Just for me to type this up, save it, publish it, and for it to pop up on your screen how much code had to be written! I don't like thinking too much about that as it gives me a headache but sometimes the thought just pops into my head. I like thinking about things one step at a time. That's all for this week. Hope you enjoyed reading this. Until next time.
Sunday, 26 January 2014
Saturday, 18 January 2014
First Blog
So this is my first time creating a blog. I've thought about creating one many times before but never actually got around to doing it. When we were first told about having to create a blog at the beginning of the course, I was kinda excited. First time doing a blog and it wouldn't be hard (hopefully) to know what to talk about (which was the initial reason for not creating a blog in the first place). Anyways I hope the readers have fun reading this (and if you don't then I can't do anything about it because you're forced to read about it.)
OK guys. See you soon!
OK guys. See you soon!
Subscribe to:
Posts (Atom)