Wednesday, October 16, 2013

Recursion

Recursion is one of my favorite topics, although I'm not the best at it. Recursion can be defined as calling the function itself in order to solve the problem. Problem is divided to smaller problems, solved and the result is combined. Recursion has two parts: base case(s) that can't be solved with a recursive kind of approach and prevent(s) infinite loop, and recursive part. It is generally slower than iteration, but certainly helps to understand the problem.

Object-oriented programming

Object-Oriented Programming is based on objects that contain data and functionality, while the programming style has been used before, procedural programming, was focused on functions which use and change the data. I think Object-Oriented Programming is useful of course, it is more manageable than procedural programming.You can expand the usability of a program with making small changes to parts of the code, not copying or reusing it again.