OOPS: It's about the mirror reflecting back into our heads

A contributor on Reddit/Learning-Python (1d ago) raised an interesting philosophical question.

Why bother having Object Oriented Programming instances and their respective methods?

After all, the computer is executing the same function whether you call it an object's method or you call it an independent function.

Good question. He's right. The computer doesn't care. It's all 1's and 0's flipping unsympathetic transistors, isn't it?

Yes. Precisely.

It has nothing to do with the efficiency of the computer. Instead it is about us and how our brains come to comprehend the data piles to whom we assign different object names in the source listing.

One object might be of class 'Automobile', say; and our brains project certain expectations to that alphabetic "name" when we see it in the source code listing.

Another object may be referenced as class 'Airplane' and as a result of that verbiage, our brains project certain expectations to that differently spelled name. For example, the method, Airplane.landing(when, where) might make sense to our brains while a same-named method for class Automobile will not.

p.s. Disclaimer: I'm not an OOPS guru. The above is just my humble opinion. Value &lt 2 cents.

More to Explore
See Reddit response #1

Comments

Popular posts from this blog

I Lied

Git-ten Up to Speed

True Confessions