Amazon.com Widgets My answer for chapter 3 exercise 6
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2013, 01:39:01 AM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Programming in Objective-C, 4th edition
| |-+  Exercises
| | |-+  Chapter 3
| | | |-+  My answer for chapter 3 exercise 6
Pages: [1]   Go Down
Print
Author Topic: My answer for chapter 3 exercise 6  (Read 497 times)
whitestork26
Newbie
*
Posts: 12






« on: June 21, 2012, 08:10:37 AM »

In the long run I see a fundamental disadvantage for the procedural approach.

Assumed that you have a perfect and bug-free implementation in a procedural programming language. But one day you have to enhance your code to support a new feature (e.g. new vehicle type). In this case you have to touch and change a (up to now) bug-free code. In more complex implementation projects this might be a risky thing as probably enter some bugs with your new code that even influence and invalidate old matured features.

Whereas within the object-oriented approach you add the new feature without the need to change anything in your existing code. Either you make use of behavior already available in the super class. Or, if that does not fit with the special behavior of your new class, you (re)define only the behavior of the new class without changing anything for your existing classes. Means that you do not invalidate any of your existing features.

So in the long run the object-oriented approach eases the enhancement of your stuff and limits the risks doing so.
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.