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