home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 19007 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!hpux.rz.uni-jena.de!pdl
  3. From: pdl@rz.uni-jena.de (Lutz Donnerhacke)
  4. Subject: Re: Reusability will come true bringing by OOP?
  5. Message-ID: <1993Jan12.155356.8365@rz.uni-jena.de>
  6. Sender: news@rz.uni-jena.de (The News)
  7. Nntp-Posting-Host: cnve.rz.uni-jena.de
  8. Reply-To: pdl@rz.uni-jena.de (Lutz Donnerhacke)
  9. Organization: University Jena, Germany
  10. References:  <1993Jan12.042140.27051@sparc4.ncu.edu.tw>
  11. Date: Tue, 12 Jan 1993 15:53:56 GMT
  12. Lines: 28
  13.  
  14.  
  15. In article <1993Jan12.042140.27051@sparc4.ncu.edu.tw>, oper7@ee05.ncu.edu.tw (Anthony Shih Hao Lee) writes:
  16. |> so I heard someone write an article (on a magazine) critized C++ is not
  17. |> a good OOPL due to it is not well self-explained.
  18.  
  19. I think this is due to the programing style. If you program bottom-up, you will mostly
  20. get unuseable code. If you program top-down, you will get better results, but a worst
  21. performance, because you can test you program first if the last low level routine is coded.
  22. example:
  23.   void main(int argc, char **argv)
  24.      {
  25.         TGA-Stream tga(argv[1]);
  26.         PCX-Stream pcx(argv[2],tga.xres(),tga.yres(),tga.colors());
  27.         RGB-Color c;
  28.  
  29.         while( tga >> c )
  30.           pcx << c;
  31.      }
  32.  
  33. What's unreadable ?
  34. Sure, now there is a lot of work to implement this classes, but all classes are readable !
  35. ?? OR ??
  36.  
  37.   Lutz (I prefer Smalltalk, because only bottom-up is allowed ;->)
  38. +---------+----------------------------------------------------------------+
  39. |snailMail| Lutz Donnerhacke; Alte Strasse 5; O-6902 Jena-Lobeda 1; Germany|
  40. |eMail    | Lutz.Donnerhacke@Physik.Uni-Jena.DE   <pdl@hpux.rz.uni-jena.de>|
  41. +---------+-------------------------------------------------------------L&C+
  42.