home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / object / 3464 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.1 KB

  1. Path: sparky!uunet!mcsun!uknet!edcastle!dcs.ed.ac.uk!rjp
  2. From: rjp@dcs.ed.ac.uk (Rob Pooley)
  3. Newsgroups: comp.object
  4. Subject: Re: Object-Oriented Methodologies - Class Specifications
  5. Message-ID: <43376@skye.dcs.ed.ac.uk>
  6. Date: 7 Sep 92 13:17:23 GMT
  7. References: <43008@skye.dcs.ed.ac.uk> <715276480.1.p00058@mail.psi.net> <1992Sep1.220559.10346@m.cs.uiuc.edu> <1992Sep2.140048.11829@bcrka451.bnr.ca>
  8. Sender: nnews@dcs.ed.ac.uk
  9. Organization: Edinburgh University
  10. Lines: 36
  11.  
  12. In article <1992Sep2.140048.11829@bcrka451.bnr.ca>, sjm@bcrki65.bnr.ca (Stuart MacMartin) writes:
  13. > It is possible that "the context of its use" is that it be generally
  14. > useful.  It is not intended for one application only.  It is a utilitarian
  15. > foundation class, application independent.  Such classes are necessary,
  16. > obviously.  It makes sense to separate the application-specific needs from
  17. > the generic building blocks.  
  18. > Your argument appears to preclude designing classes for re-use.  Or have I 
  19. > misunderstood your comments?
  20.  
  21. That's a bit more extreme than I intended. My experience seems to show that it
  22. is rarely useful to design at too abstract a level. This may in fact make it
  23. harder to re-use the class.
  24.  
  25. What I was trying to say was that there are probably limits to re-use and that
  26. it is better to be clear about the context in which you intend such re-use to
  27. take place. Geometrical shapes are a particularly slippery concept to deal
  28. with, since they can be intended for several different purposes and so
  29. understood in different ways.
  30.  
  31. Inheritance is not "Platonic", i.e. you don't start from a pure definition and
  32. add compromises in terms of the world you use the concept in, do you? If not
  33. then that means of re-use is inherently rooted in the context of its intended
  34. end use.
  35.  
  36. Re-use in composition may be a better candidate for a pure view of classes,
  37. but then the use of the objects derived from a class are defined in the
  38. aggregating class and the object itself merely carries enough information to
  39. define itself. Thus a circle is a tuple of radius and (possibly but not
  40. necessarily) a centre.
  41.  
  42. Rob Pooley,
  43.  
  44. Fading into the shades of imperfection
  45.