-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 7/16/10 01:18 , Oscar Hsieh wrote: > No, in real world, you dont say Push Down Gas Pedal, Who push down > the gas pedal? If I say Call me, I am talking to someone, or I > would be crazy. So in your example, really it should be > Nick.pushDown(Pedal), then you see that is very objective. Now in > function language, you have to say something like pushDown(Nick, > Pedal) ... it is like I am saying Call You Me instead of You Call > Me ... > > There are many things FP are good at but you have to admit its > mathematical root. > > In the real world, you dont just say Push down pedal Hmmm... these examples seem to me more related to message passing that OO. When I say that the real world is no OO I'm thinking to cohesion and coupling. A good OO system has small interfaces that hide complex implementations. In the real world, there are interactions everywhere. Even the classic example of the car driver that interacts with the car by means of hands, foots and eyes with the steering wheel, pedals and dashboard is a simplification of reality; you have "hidden" interfaces such as the perception of gravity through pressure on your back, aural perception of the engine regime or other troubles etc... Consider the side effects of medical drugs: you take a medicine to fix your headache, and it causes you stomach troubles. I'd dare to say that a good deal of the big problems of our world (e.g. pollution and AGW - if you believe in it, I don't) arise from side effects that you didn't expect to be there.
Sure, you could say that the world is indeed OO and we need much more and fat interfaces to model it; but I say that the OO model is good as far as it can deliver a simple and elegant solution. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." java.net/blog/fabriziogiudici - www.tidalwave.it/people [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw/oYwACgkQeDweFqgUGxcvZgCbB0i6rU6U+aW4ChaXgE2R42wS aDAAnA2yEZOiSZhmOEcqXaO4V9QjzFbR =EvbP -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
