Re: Interesting take on Paradigms (OO vs Procedural)




"Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:657mp4F2dooroU1@xxxxxxxxxxxxxxxxxxxxx


"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:13ur5tg3con5ja4@xxxxxxxxxxxxxxxxxxxxx

"Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:65553nF2cjsrhU1@xxxxxxxxxxxxxxxxxxxxx


"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:13uq9i0e2sfdd1a@xxxxxxxxxxxxxxxxxxxxx

< http://www.cs.berkeley.edu/~jrs/4/lec/14 >
-----
Why did the originators of object orientation rename "structures" to
"objects"
and "procedures" to "methods"? Hubris and arrogance, in my opinion.

This simply says that the writer has not really understood the
essential
differences. I read the full article and he/she does a good job of
listing
the differences, but identifying differences and actually understanding
the
implications of those differences are two different things.

The comment above implies that the commentator sees no difference
between
a
"structure" and an "object", yet anyone who has worked with these
things
in
the real world would understand the essential difference. This is the
difference between Acadaemia and Reality.

H'm! Structure, in procedural, is accessed through a pointer.
Object, in object-based, is accessed through a reference.
Object, in object-oriented, is accessed through a reference;
but also holds a "vtable" to accommodate inheritance and
polymorphism.

The essential difference seems to be the extension of the
structure to add the "vtable" making the object a bigger
structure.

You are looking only at the mechanics of an implementation. The conceptual
use of objects is WAY more important. But you only come to appreciate that
when you start using them for systems in the real world, and not just to
describe some academic argument.

Whether objects implement inheritance through a vtable or not is
completely
irrelevant to the use of objects. For you, an object is just a structure
in
memory; for me, it is much more than that. I visualise objects as
representing a real world entity and having attributes and behaviours that
a
structure alone can never have. Perhaps it comes down to imagination and
vision.

I used to see objects as real world entities. Now I associate
real world entites with classes, because the methods in the
classes repesent behavior. If one is to "simulate" anything,
it is the behavior that is to be simulated.

To simulate a business, the behavior occurs in employees,
customers, orders, accounts, etc.; but to simulate the
financial systems of a business the behavior is in clerks, and
the employees, customers, orders, accounts, etc., become
just data structures devoid of behavior. This is not much
different than a card game, where the dealer and players
have behavior but the cards don't; even though the cards
are real world entities.


.



Relevant Pages

  • Re: Interesting take on Paradigms (OO vs Procedural)
    ... To simulate a business, the behavior occurs in employees, ... the employees, customers, orders, accounts, etc., become ... have behavior but the cards don't; ...
    (comp.lang.cobol)
  • GOP professionals in the WH (again)
    ... Millions Wasted on Gov't Cards ... WASHINGTON - Federal employees charged millions of dollars for Internet ... Out of a sample of purchases totaling $2.7 million, ... Government auditors have been investigating these and similar charges, ...
    (alt.politics.bush)
  • Re: modularity... (was: Re: Looking for real world examples to explain the difference between proced
    ... Those activities are at a much lower level of abstraction than whatever ... I have no problem with a classification system for verbs/tasks. ... with slots for "cards" in virtual alphabetical cabinets. ... there may not be any "customers" with a domain in which to model... ...
    (comp.object)
  • Re: The case of the missing ExpressCard slot
    ... feel that the number of customers they'll lose over this is ... Those are raw facts that prove nothing and, in fact, support ... tuner cards, sound cards, or wireless server cards. ... connection) between camera and computer fails. ...
    (comp.sys.mac.advocacy)
  • Re: The case of the missing ExpressCard slot
    ... feel that the number of customers they'll lose over this is ... ExpressCard 34mm Slot ... tuner cards, sound cards, or wireless server cards. ... connection) between camera and computer fails. ...
    (comp.sys.mac.advocacy)