home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!leland.Stanford.EDU!kocks
- From: kocks@leland.Stanford.EDU (Peter Kocks)
- Subject: Re: Newbie Wants Advice on C-Programming
- Message-ID: <1992Dec30.211924.2614@leland.Stanford.EDU>
- Sender: ?@leland.Stanford.EDU
- Organization: DSG, Stanford University, CA 94305, USA
- References: <1992Dec23.220530.15347@netcom.com> <1992Dec27.023035.26886@mole-end.matawan.nj.us> <1313@ottawa.opl.com.opl.com>
- Date: Wed, 30 Dec 92 21:19:24 GMT
- Lines: 55
-
- In article <1313@ottawa.opl.com.opl.com>, sas@regina.aruba.UUCP (Steve Sciandra) writes:
-
-
- You are all off your ROCKER !!!!!!!!!!!!
-
- When someone asks the question, "Should I learn C before C++?", the answer is
- always, "That depends on what you want to do".
-
- I took me some time to realize that it is not the language that counts, but the
- paradigm or idiom you use. The language is important, but not as important as
- knowing a few of the basic computer *tricks*. For example, do you know what
- the following things are:
-
- 1) Linked list
- 2) Hash Table
- 3) bTree
- 4) Recursion (a critical programming trick that most fortran programmers
- no nothing about).
- 5) Data structures
- 6) Modularity
- 7) Shell sort
-
- All of the above can be done in FORTRAN 90 (not f77). Actually, I not that
- sure they can all be done without some significant hacking.
-
- 8) Inheritance
- 9) messaging
- 10) Code sharing
- 11) weak vs strong type checking
- 12) static vs. dynamic binding.
-
- This list can get very long, so I will not try to be complete.
-
- If you know the very basics of any computer language (like what an array is and
- what assignment means (eg c = c + 2), you can learn all of these techniques
- by just reading books. Yes, many of these books may have "C" or "C++" in the
- title, but you can read them just the same. You may not understand all the
- syntax in the examples, but you will get the general concept. It is much
- more important to get the general concept early, than wait 5 years and get
- it from experience in a specific language.
-
- So, first decide whether you really need to let's say "inheritance", then
- pick your language.
-
- Most FORTRAN programmers really need to learn recursion and hash tables first,
- before anything else. For most scientific applications this can speed
- up your code by boat loads. FORTRAN 90 makes these techiniques easier to
- port from one machine to the next, but both hash tables and recursion can be
- done on most FORTRAN 77 compilers.
-
- --Peter Kocks
- kocks@chemistry.stanford.edu
-
- PS. You're probably a scientist if you are asking this question, so you
- should READ READ READ first, code later.
-