02-16-2012, 11:22 PM
|
#3 (permalink)
|
|
The Visitor
Join Date: Feb 2012
Posts: 2
Thanks: 0
|
Don’t see like it is object oriented vs procedural , just one brunch of programming flourished to something of its own. I have seen object oriented thinking in programs written before object oriented came out, in languages that where strict procedurals (like COBOL). The thing with your script is that it has many variables hard coded, and it is ok for now that you have only two functions but what are you going to do next time you want to modify something. You will always include this code and change the variables ?, more over tomorrow you will have more function in the same logic chapter , how will you group them ? Object oriented programming isn’t just a trend, it is the best thing we have so far in logic encapsulation, but as a tool can be used in wrong ways too (I could say more on that but that would be out of topic)
|
|
|
|