home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 12942 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  3.1 KB

  1. Path: sparky!uunet!rhlab!bkuhn
  2. From: bkuhn@rhlab.UUCP (bmk Bradley Kuhn)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why should POINTERS be so damn hard to understand ?
  5. Summary: C as a first language
  6. Message-ID: <485@rhlab.UUCP>
  7. Date: 28 Aug 92 13:39:27 GMT
  8. References: <9208251159.AA04122@ult4> <1992Aug26.124652.9509@alw.nih.gov> <l9nl34INNhln@almaak.usc.edu>
  9. Organization: Baltimore Rh Laboratory, Inc., Maryland
  10. Lines: 59
  11.  
  12. In article <l9nl34INNhln@almaak.usc.edu>, ajayshah@almaak.usc.edu (Ajay Shah) writes:
  13. > tony@nexus.yorku.ca (Anthony Wallis) writes:
  14. > >Jim Sullivan (sullivan@alw.nih.gov), in response to  
  15. > >> > When learning C, what things did you find the most
  16. > >> > confusing/difficult to understand?
  17. > >says
  18. > >> What else?... POINTERS!
  19. > >(This seems to be a common gripe from students subjected to that
  20. > > Blaise-ing insult known as "Pascal" too.)
  21. > On the contrary, I did a fortran --> basic --> pascal --> turbo pacal
  22. > --> awk --> C route.  I found that an Extremely crisp clarity
  23. > with Pascal pointers was a great asset in quickly jumping into
  24. > pointers with C.
  25.  
  26. I took the: basic --> pascal (but never learned pointers) --> C (w/pointers)
  27.             --> pascal (w/pointers)   route.
  28.  
  29. > Most pascal students don't have time enough in a first course to
  30. > really think about pointers.
  31.  
  32. IMHO, I think it is best to get right into linked list and pointers right after
  33. learning arrays.  The constrast w/ arrays shows the value of pointers/linked
  34. lists, and it is easiest to see when the student has the concept of arrays
  35. and direct acess memory storage fresh in the mind.
  36.  
  37. > IMHO Pascal is still the best first teaching language I can see.
  38.  
  39. I think that it is time to switch to C (Wirth would tell us Modula-2 :-).
  40. Pascal became a first language when it was the most popular language in use.
  41. C is now the most popular, and it's time as an introductional language has 
  42. come. Pointers could be held off until a second level course, and then the
  43. student is not so overwhelmed by the C, since the basic concepts are already
  44. in place, and the advanced concept of pointers can be more in focus.
  45.   Actually, I found it to be quite a let down, after mastering C, to return
  46. and finish pascal (I learned C on my own, and they made me take the extra
  47. pascal).  I remember the day in class that pointers were introduced, I thought
  48. to myself "THAT'S IT!  HOW USELESS!"
  49.  
  50. > If you have not laboured
  51. > writing x = x + 1; thousands of times, you won't appreciate
  52. > ++x and x++.
  53.  
  54. Granted, there is something to be said for that.  I remember first learning
  55. differential calculus.  We had 40 problems to find derivatives using the
  56. limit definition.  It took me 4 hours.  The next day, the teacher told us
  57. to " multiply by the power and drop it one".  I was P.O.'d but I will never
  58. forget the limit definition of a derivative.
  59.  
  60. That being said, I think that there is a point where we have to give 
  61. rookies the advantages of our labors.  We don't make First year students in
  62. CS write assembler code before they are permitted to use high-level languages.
  63. -- 
  64.  
  65.  -- Bradley M. Kuhn    Computer Systems Development, Inc.
  66.      INTERNET: rhlab!bkuhn@uunet.uu.net OR bkuhn@loyola.edu
  67.      UUCP:     ...uunet!rhlab!bkuhn
  68.