Igor Stasenko wrote:
On 16 June 2012 02:23, Mark Haniford <[email protected]> wrote:
Paul,
I found your post interesting in that it might reflect a fundamental
problem that I have with "normal, average" OO, and that is that
methods belong with data. I have never bought that idea....ever. I
remember feeling stupid because I could never grok that idea and then
felt better when the chief scientist at Franz (who of course produce
Franz Lisp) said that functions don't belong with data. So of course
in Common Lisp we have generic functions.
I also thought that so called OO is just a mere coupling of data and functions..
but after learning smalltalk and especially an image-based development,
i came to conclusion, that it is often not necessary to separate those two,
it's all just data or, if you like another word, - an information.
Information describing some numbers or connections between multiple
entities, or their groups,
and information which describes how computer system operates with
those entities.
The problem I've always had with OO paradigms is that they simply ignore
flow-of-control.
Define classes -> instantiate objects -> a miracle occurs
- some languages are single threaded: start a main loop going in a
master object, it starts generating messages to other objects, the flow
of control gets very murky, very quickly
- other languages/systems are event driven - multiple event-responses
can be in process, but just try to understand the flow of messages, and
the resulting system state, that result while a myriad of events are
being processed
Traditional procedural languages impose some discipline in thinking
about flow-of-control, subroutine calls and returns, etc.
Actor formalisms (e.g., as in Erlang) impose strict constraints that
enable massive concurrency without having to worry (too much) about
things like deadlocks, race conditions, deadly embraces, and so on.
The OO paradigm simply seems to hide flow-of-control in ways that make
it very hard to even think about the issues. Has always struck me as a
recipe for disaster when building seriously complex systems.
Miles Fidelman
--
In theory, there is no difference between theory and practice.
In practice, there is. .... Yogi Berra
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc