home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Newbie Wants Advice on C-Programming
- Message-ID: <1993Jan3.170917.16629@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: <1993Jan2.163028.8829@netcom.com> <24538@alice.att.com> <4284@dozo.and.nl>
- Date: Sun, 3 Jan 1993 17:09:17 GMT
- Lines: 61
-
- In article <4284@dozo.and.nl> jos@and.nl (Jos Horsmeier) writes:
- >
- >I think there's a bit more to leaning C++ than there is in learning C.
- >C++ uses quite a different paradigm: the object oriented programming
- >approach.
-
- C++ makes class oriented programming possible. I would
- not wish to say 'C++ uses the object oriented approach'.
- Programmers do that, and C++ makes many other approaches available.
- For example, ADT programming -- not unrelated to the OO approach,
- but with the emphasis on values rather than objects.
-
- Then again there is more than one OO approach: a dynamic
- one (generally frowned on in C++) with Object heirarchies,
- or mixins (to name but two).
-
- >My second attempt was, not using any programming
- >language at all, but just a clear explanation of the object oriented
- >concepts and mechanisms. When all that was clear, we switched to C++.
- >
- >This approach was much more fruitful: the C++ language became just
- >a mechanism to express these object oriented mechanisms.
-
- As it can be used as a mechanism for other mechanisms.
- Which is why you might have failed the first time: you were
- trying to teach OO and not C++.
-
-
- >IMHO there are tree types of `beginners':
- >
- >- First time programmers;
- >- Experienced programmers but still unaware of the OOD concepts;
- >- Experienced programmers aware of OOD concepts, but they don't know
- > anything about the C++ language.
-
- Type 4 is experienced C++ programmers *with* OO knowledge.
- Most of use would still consider ourselves beginners :-)
- After all, the language hasn't even been officially born yet.
- >
- >I think that one has to be a beginner of the third kind to be able
- >to learn the C++ language successfully.
-
- It also helps to look at the non-OO features of C++.
- These are surprisingly rich and powerful: C++ being class
- based does not have the dynamic power of OO systems like
- Smalltalk, or even Eiffel.
-
- Type 3 programmers with say Smalltalk experience
- often have a lot of trouble with C++. It is hard to believe
- these two languages really operate on the same paradigm at all.
-
- Although the transition might be slower, I suspect
- experienced C programmers have the least trouble with C++
- style in the long run. They at least can extend their
- paradigm(s) rather than having to radically alter them.
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-