Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have no evidence other than the observation that OO mimicked the taxonomy used in the natural sciences. Example: Homo sapiens is of the class mammalia and of the kingdom animalia. This taxonomy originated from Aristotle to describe the world. [1] The problem is that software is needed not to take a static snapshot of the world (state). Software is needed to automate and report on changes (transactions).

Aristotle wrote about change and thought about change in four ways. The material from where object came from. The form or template or shape of the change. The efficiency or agent that caused the change. The purpose or reason or final cause of why the change was made.

So instead of classes and methods. If we followed this paradigm, we could be now discussing forms and changes.

Of course business folks would think this is all silly. They speak the language of accounting which records transaction entries in a journal. Each month the books are closed and the transactions are summarized as the closing balance. Instead of classes, the talk about general ledger codes. Instead of methods, they talk about entries and reverse entries to correct an error. Instead of state, they talk about auditing the entries to verify the balance.

[1] https://davesgarden.com/guides/articles/view/2051



OOP (as Alan Kay conceived it) was explicitly inspired by biology. Objects are cells and communicate through exchanging messages. State is local and hidden, and data itself disappears, which means that the program as written may be ignorant of how operations are performed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: