Sunday, October 13, 2013

Hello Everybody!

As assigned, today I'm gonna talk about my own perspective/understanding of on Object Oriented Programming and Recursion.

Object Oriented Programming is a specific approach/style in programming. This particular approach represents pieces or parts of an application in form of objects. These objects usually have their unique set of attributes/characteristics that describe them and a set of methods/functions that enable objects to perform some sort of operations. This existence of separate objects that make up a program allows the developer to break down a large scale problem to smaller pieces. It's important to mention that a program is operating based on the fact that the objects that are specifically designed for a particular program interact with each other (do things to each other) and not because such objects just exist. Once all the separate pieces (objects) are ready and put up together, the whole program is ready. It's like producing a car where all the parts (objects) are put up together and a result is a ready vehicle.

In general, recursion is a process of repeating things (actions) in a self-similar way. In computer science recursion is used as a way of solving problems by providing instructions in a repetitive manner. In particular this refers to the process of implementing methods/functions. To give the class a description of what its objects should be able to do, we have to provide the class with a very accurate and detailed instructions. In some cases we want a particular method to do repetitive actions over and over for an unknown number of times. In this case it becomes impossible to provide a perfect description of each case. So instead we describe in the method the way and the cases in which a method should repeat itself until the problem is solved. Even though in general recursion provides a shorter and a more elegant solution to a problem, it's sometimes not the most efficient way to approach a problem.

Good luck everyone...







3 comments:

  1. Here is something to think about, Oleksandr: What are the disadvantages of OOP? Can you think of problems that you rather use a different programming paradigm for?

    ReplyDelete
  2. Problems that involve databases would use SQL or for example problems that require the use of many statistical concepts would be best approach by R.
    I'm sure there are many more other concepts that require an approach other than OOP that I'm not aware of at this point.

    ReplyDelete
  3. OO understands the notion that developer time is now vastly more expensive than computer time. I heard that when developing an AA title for consoles this fact doesn't necessarily hold true.

    ReplyDelete