Reusability of Code
Writing software can be a very time consuming task depending on many things including the complexity of the program. When writing a program there are two main methods a programmer can take advantage of Procedural and Object-oriented programing. Procedural programming uses a step by step method of procedures to produce the desired result, whereas object-oriented programming or OOP is broken down into encapsulated objects that can be used independently to perform the task with its own method.
One very common technique among developers is the reusing of code, because this technique reduces the amount of unnecessary coding which saves the developer a tremendous amount of time, whether it is the reusing of procedures or the reusing of software components in ...view middle of the document...
If a major change to the main procedure is require this change could cascade to the sub-procedures resulting in a serious problem for the programmer. Object-oriented programming focuses on creating object and within these objects are data and the procedures which operate the data. The data is then encapsulated into the object eliminating the problem with the code that a programmer would run into while procedural programming.
Although procedural programming and object-oriented programming differ in so many ways they also share some similarities. One of the similarities that the both share is the use of algorithms to process data. Without the algorithms both procedural programming and object-oriented programming would be stuck with loads of data and nothing to do with it. Also, both type of programming take advantage of procedures to help navigate data to the right path. Both type of programming also allow the aforementioned reuse of code that save the programmer loads of time. One of the more obvious commonalities that both procedural programming and object-oriented programming share is they are both trying to perform a task they are designed to take data and perform a logical computation to produce the desired result.
As you can see, both procedural programming and object-oriented programming are different in many ways procedural programming relies on creating procedures and sub-procedures that pass data along step by step to perform a task. While object-oriented programming creates object that have procedures and data built in to perform a task, however they also share a number of similarities which can make the decision of what type of programming to use just a little more difficult. Personally I like the Object-oriented method of programming it seems to be more flexible and easier, but the style in which a program is developed in up to the programmer.