home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16223 < prev    next >
Encoding:
Text File  |  1992-11-14  |  2.2 KB  |  45 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!utcsri!torn!nott!bnrgate!bcrka451!bcrki65!sjm
  3. From: sjm@bcrki65.bnr.ca (Stuart MacMartin)
  4. Subject: Reading class internals (was Re: Criticisms Wanted)
  5. Message-ID: <1992Nov13.160714.27780@bcrka451.bnr.ca>
  6. Sender: 5E00 Corkstown News Server
  7. Organization: Bell-Northern Research Ltd., Ottawa, Canada
  8. References: <1992Nov11.170816.24497@cc.gatech.edu> <1992Nov11.175117.15325@bcrka451.bnr.ca> <1992Nov13.060823.1358@BofA.com>
  9. Date: Fri, 13 Nov 1992 16:07:14 GMT
  10. Lines: 33
  11.  
  12. In article <1992Nov13.060823.1358@BofA.com> dan@BofA.com (Dan Brockman) writes:
  13. >In article <1992Nov11.175117.15325@bcrka451.bnr.ca> sjm@bcrki65.bnr.ca (Stuart MacMartin) writes:
  14. >>
  15. >>The real question is *why* does the user have to look into the inner workings of
  16. >>the class?  Surely not to discover the inner workings, but to discover behavioural
  17. >>characteristics of the class.  Will these be clear from looking inside the class?
  18. >>Does the user enjoy poking his nose around where he doesn't belong?
  19. >>
  20. >
  21. >Reading source code is hardly a crime.  He could be trying to fix the damned
  22. >bug his benighted colleague wrote into the program.  He could be trying to 
  23. >find the damned bug.  He could be looking for a good example of how to 
  24. >perform some deft programming trick.  He could be making an enhancement.
  25. >You are right to ask *why*, though.  It is a good question to ask.  But 
  26. >do you intend to prohibit the reading of source code?  That is, *why not*
  27. >look into the inner workings, even if you do not have to?
  28. >-- 
  29.  
  30. Ok, yes I guess I overstated myself.  However, the discussion had been along
  31. the lines of "I need to look at the source in order to use the class".  This
  32. indicates a problem in documentation to me.  You are right that there are 
  33. many valid reasons to look at how a class works.  
  34.  
  35. There are those who can't drive a car until they've found out where the engine
  36. is and seen how the engine is constructed.  But it should not be necessary
  37. to know about the engine to drive the car.
  38.  
  39. Stuart
  40.  
  41. --
  42. : Stuart MacMartin                                    email: sjm@bnr.ca      :
  43. : Bell-Northern Research                              phone: (613) 763-5625  :
  44. : PO Box 3511, Stn C, Ottawa, K1Y-4H7, CANADA    Standard disclaimers apply. :
  45.