Procedural programming versus object-oriented programming.

Procedural programming is frightening. The following is an example of procedural programming.

eat(you, apple); // Please do not eat me!

For someone who is unfamiliar with procedural programming this appears to be a threat that someone is going to eat you for dinner followed by an apple for desert!

Object-oriented programming makes the true intent of the function clear even to those who are unfamiliar with computer programming.

you.eat(apple);


This makes it very clear that you are eating an apple.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.