Monday, October 14, 2013

Hello Blog!

Hello, reader. This blog is the first of many, and is my grand entrance to the blogging world.

Today, I would like to talk about two things: object-oriented programming and recursion. Lets start with the former. Object-oriented programming refers to coding with objects, which are instance variables derived from a class. These objects contain methods, which are baked-in functions, and attributes, which are preset values initialized when the object instance is created.- Some languages, such as C++, are referred to as object-oriented programming languages: the feature is so important that it help defines the language. Objects are extremely useful to a computer programmer, as the methods and attributes of objects allow a programmer to write efficient, modular code. Objects are great at storing info about many individual units of a greater concept.

Now, I would like to talk about recursion. In programming, a recursive function can be thought of as a function that, somewhere in its body, makes one or more calls to itself. Usually, the function will run through calling itself multiple times, continuing on until a certain depth has been reached. At this point, the return value will emerge through multiple layers of function until finally it returns to the run of the original function call. These types of functions are very useful to a programmer. They allow for writing efficient code and for calculating difficult problems quickly. While recursion can be difficult to understand, the benefits of this style of code are worth learning about.

I would now like to conclude for this week. Until next time, readers!

No comments:

Post a Comment