home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / programm / 2383 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.6 KB

  1. Path: sparky!uunet!utcsri!torn!cunews!revcan!software.mitel.com!anderson
  2. From: anderson@Software.Mitel.COM (David Anderson)
  3. Newsgroups: comp.programming
  4. Subject: Re: Teaching the basics
  5. Message-ID: <12635@anderson>
  6. Date: 18 Aug 92 19:51:42 GMT
  7. References: <1992Aug17.123916.14815@husc13.harvard.edu> <Bt6DGq.HuB@metropolis.com>
  8. Organization: Mitel. Kanata (Ontario). Canada.
  9. Lines: 54
  10.  
  11. In article <Bt6DGq.HuB@metropolis.com> robert@metropolis.com (Robert Munyer) writes:
  12. >Yo, James!
  13. >
  14. [ Excellent Testing remarks delete...]
  15.  
  16. >P.S.  I know that C is fashionable, but it's really not a very good language
  17. >for teaching complete beginners.  C has a lot of "traps and pitfalls" for the
  18. >unwary.  When you're not even ready to learn about pointers, C is not much
  19. >more than a twisted version of Pascal.  What good is C without pointers?
  20. >
  21. >They'd be better off starting with Pascal (or Modula-2 or -3), and switching
  22. >to C only after they've learned how to use pointers in Pascal.  Of course,
  23. >often there are political considerations, and there's not much you can do.
  24.  
  25. I currently teach C and have taught Pascal for the local college here and
  26. I tend to agree with Robert on the above comments.
  27.  
  28.   o C is *not* a beginners  language.
  29.  
  30.     I have had students who had no prior programming knowledge attend my C
  31.     class. I told them that they may find it to be an "overwelming" course.
  32.     These students have either *barely* passed or have dropped out all
  33.     together. This won't apply to all students, but in my experience C and
  34.     the beginner programmer do not go well together!
  35.  
  36.   o Robert's other comment on Pointers is very valid. I cannot see how you can
  37.     teach a C course without teaching Pointers. In Pascal, I could "get away"
  38.     with not teaching pointers until the very end of the course because of
  39.     Pascal's call by reference and value mechanisms. In C however, the concept
  40.     of pointers *must* be taught at the very start of the course.
  41.  
  42. Other general points in teaching any language:
  43.  
  44.   o Style! Teach the student consistent coding practices. Readability counts
  45.     higher than fancy cryptic statements.
  46.  
  47.   o Meaningful Identifiers. Please make sure the student is not using variable
  48.     names like "a" when you really mean something like "tax_rate"!
  49.  
  50.   o Teach them modular programming techniques. Emphasize how to make proper
  51.     use of prototypes, static, auto, and global variables etc...
  52.  
  53. That's most of the important ones anyway...
  54.  
  55. Good luck in your class...
  56.  
  57. Regards,
  58.  
  59. /David
  60. -- 
  61. -------------------------------------------------------
  62. David AR Anderson   Email: anderson@Software.Mitel.COM
  63. Software Tools and Integration
  64. Mitel Corporation   Disclaimer: My opinions are my own!
  65.