From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b8748382fcfacc1 X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: friend classes in ada95 Date: 2000/04/20 Message-ID: #1/1 X-Deja-AN: 613636073 References: <8dh37m$qef$2@wanadoo.fr> <3B5L4.1317$B43.116109@news.pacbell.net> <38FD1830.949F5E81@mindspring.com> <38FD1C9E.7C2B7756@research.canon.com.au> <8dldqi$mb7$1@nnrp1.deja.com> <38FE365D.31C893A6@acm.org> <8dmj62$4i7$1@wanadoo.fr> <8dmm12$1j7$1@nnrp1.deja.com> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 956247595 214 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-20T00:00:00+00:00 List-Id: On Thu, 20 Apr 2000, Robert Dewar wrote: > In article <8dmj62$4i7$1@wanadoo.fr>, > "Jean-Pierre Rosen" wrote: > > i.e. that a program is > > no more defined as a sequence of actions to be performed by a > > computer, but as a representation, a modelization, of the real > > world. FWIW. > > No, that's much too broad, the object oriented approach is > only one particular way of representing or modeling the > world. > > COBOL programs have traditionally modeled the accounting > world for example, pretty literally, but often in ways that > are purely procedural (the real world does contain procedures > as well as objects :-) > > Indeed this points out the ultimate weakness of relying on the > OO paradign for everything. > > Obviously you can do any computing task using any computation > approach, we all know that. > > Therefore, Q.E.D. you can do anything using an object oriented > approach, so we all know that too, and it proves nothing. > > The point is that the OO approach is most often useful ONLY > if it does indeed model the real world, so if your real world > problem is not naturally "object oriented", then forcing it > into the OO paradigm may considerably distort the model. I would have guessed that you are American, not Scandinavian :-) For those who don't get the reference, the Scandinavians, that is, the designers of Simula and BETA, refer to two different views of OO which they call the "Scandinavian" and "American" views, where the Scandinavian view is concerned with "real world" (whatever that is) modeling and the American with using OO as a software engineering tool concerned with the structure of the source code. This is an oversimplification of course, if you want the full story read one of the books by Madsen on the topic, like the BETA book. Since I have no idea what this "real world" is and how it helps me write code, I'm pretty much an American. I'm certainly looking forward to reading Robert's contrary views on OOP. I suspect that we won't be able to get a hard and fast definition of OOP or OOPL that everyone agrees on. -- Brian