home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18560 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.6 KB  |  67 lines

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