|
|
|
|
|
by ericHosick
4453 days ago
|
|
Think something like messages with behavior[1]. Think objects where behavior is implemented in properties: a single "makeItSo" property for example. Every object has the exact same behavioral interface. The exact same behavioral interface means there is no specialization: every message looks the same. We can compose programs (behavior) by hooking up objects/messages as opposed to coding them. This is because we have 100% encapsulation[2]. We need to know nothing about the internal working of an object since it has no parameterized subroutines. The abstraction for passing information between sub-systems are these messages (every object is a message) as opposed to parameterized subroutines. [1] We could call it message-oriented programming (not to be confused with message-oriented software/frameworks). [2] Even a single parameterized method leaks some of the internal workings of an object and leads to specialization of the objects interface. This also leads to tightly coupled software systems. |
|