Saturday, December 11, 2010

Organic Objects

It seems to me that the most valuable conception of Object Oriented Programming that I regularly employ would be that founded on the principles of Organic Programming as derived from the text Theory of self reproducing automata by John von Neumann.

The first principle of organicity derived from TSRA would be organic liveness: the organism (program) is alive or dead according to the rules in its design. Dead being not usable.

In Object Oriented Programming, an object is such an organism. Its internal state is regulated by its functions, and its organic liveness depends on the coherency of its internal state.

Therefore OOP design creates such organisms that regulate their internal state, and typically protect that organic liveness from becoming internally incoherent (by raising exceptions for function calls that would violate the object- organism's internal coherency).

No comments: