home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Reusability will come true bringing by OOP?
- Message-ID: <1993Jan12.170208.1319@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <1993Jan12.042140.27051@sparc4.ncu.edu.tw>
- Date: Tue, 12 Jan 1993 17:02:08 GMT
- Lines: 46
-
- In article <1993Jan12.042140.27051@sparc4.ncu.edu.tw> oper7@ee05.ncu.edu.tw (Anthony Shih Hao Lee) writes:
- >Hi, OOP experters:
- >
- >These days, My friend and I argued that if reusability will come true
- >if we use OOP. Take a example, for those GUI class, if you do not have
- >good ability to write good (well-organized, clear) documents, then it
- >is impossible for a client to use your classes. Because he cannot
- >promise that all behaviors derived from superclass will work correctly.
- >so I heard someone write an article (on a magazine) critized C++ is not
- >a good OOPL due to it is not well self-explained.
- >
- >Think about this if you are a TVISION programmers:
- >if Borland does not release TVision source code, do you really trust
- >the quality of that package?
- >
-
- IMHO reusability will not come from monsters like TV
- or whatever, but small, independent, classes, especially
- abstract ones.
-
- GUI classes are the last place to look for this.
- Try 'string'. I reuse my string class in almost
- every program. It is magic.
-
- For the moment, I look to using an ADT style
- more than OO. One of the main principle of OO and modularisation
- in general is to have loose and explicit coupling,
- like functions with parameters.
-
- Inheritance is neither: it provides strong coupling
- with implicit interfaces. So it should be treated with
- some respect and restraint.
-
- TV is the sort of heavily integrated nightmare
- you get from overdoing OO. I did one program in TV,
- and live to regret it.
-
- Have a look at the Borland template classes (BI classes)
- for something I think is much more reusable.
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-