home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18603 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!ulogic!hartman
  2. From: hartman@ulogic.UUCP (Richard M. Hartman)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie Wants Advice on C-Programming
  5. Message-ID: <801@ulogic.UUCP>
  6. Date: 31 Dec 92 18:47:57 GMT
  7. References: <1992Dec27.023035.26886@mole-end.matawan.nj.us> <1313@ottawa.opl.com.opl.com> <1992Dec30.211924.2614@leland.Stanford.EDU>
  8. Organization: negligable
  9. Lines: 51
  10.  
  11. In article <1992Dec30.211924.2614@leland.Stanford.EDU> kocks@leland.Stanford.EDU (Peter Kocks) writes:
  12. >In article <1313@ottawa.opl.com.opl.com>, sas@regina.aruba.UUCP (Steve Sciandra) writes:
  13. >I took me some time to realize that it is not the language that counts, but the
  14. >paradigm or idiom you use.  The language is important, but not as important as
  15. >knowing a few of the basic computer *tricks*.  For example, do you know what
  16. >the following things are:
  17. >
  18. >1)  Linked list
  19. >2)  Hash Table
  20. >3)  bTree
  21. >4)  Recursion  (a critical programming trick that most fortran programmers 
  22. >                no nothing about).
  23. >5)  Data structures
  24. >6)  Modularity
  25. >7)  Shell sort
  26.  
  27. These aren't "tricks", they are FUNDAMENTALS!  A "trick" is:
  28.  
  29.     ((a<b)?f1:f2)(arg)
  30.  
  31. >If you know the very basics of any computer language (like what an array is and
  32. >what assignment means (eg c = c + 2), you can learn all of these techniques
  33.  
  34. do you mean:
  35.  
  36.     c := c + 2;        { student days are back again! }
  37.  
  38. or 
  39.     c += 2;            // sorry, I couldn't resist!
  40.  
  41. >by just reading books.  Yes, many of these books may have "C" or "C++" in the
  42. >title, but you can read them just the same.  You may not understand all the
  43. >syntax in the examples, but you will get the general concept.  It is much
  44. >more important to get the general concept early, than wait 5 years and get
  45. >it from experience in a specific language.
  46.  
  47. Yes, but I find that books on Pascal tend to be more useful for teaching
  48. the general concepts than most of the C or C++ books I've seen.
  49. Again, IGNORE the language, learn the concept.  Take Grogono's
  50. Pascal book (although there may be a better one by now, that one's
  51. about ten years old!) to learn about using pascal's records and
  52. pointers, change the syntax and voila!  You now know how to use C's 
  53. structs and pointers!
  54.  
  55.  
  56. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  57. Philosopher and plowman            |
  58. each must know his part            |    -Richard Hartman    
  59. to build a new mentality        |    hartman@uLogic.COM
  60. closer to the heart!            |
  61.  
  62.