logoalt Hacker News

pjmlpyesterday at 6:41 AM1 replyview on HN

In fact, to a certain point of view, OOP is a way to have modules bind to variables, and being extensible.


Replies

jqpabc123yesterday at 12:08 PM

And the price for this is constrained flexibility and utility.

Data has value and utility on it's own --- as much as if not more than code that manipulates it. It is often not possible to foresee all the ways it can and will need to be used. So why bind anything to it?

Relational databases were invented to provide flexibility with regard to data. OOP tries to encumber it --- often referred to as an "impedance mismatch".

show 1 reply