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

  1. Path: sparky!uunet!dtix!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!bcars267!bnr-rsc!sdms@bnr.ca
  2. From: sdms@bnr.ca (Andrew Sterian)
  3. Newsgroups: comp.programming
  4. Subject: Re: Teaching the basics
  5. Message-ID: <13226@bnr-rsc.UUCP>
  6. Date: 20 Aug 92 16:42:09 GMT
  7. References: <Bt6DGq.HuB@metropolis.com> <12635@anderson> <ratner.714247759@ficus.cs.ucla.edu>
  8. Sender: news@bnr-rsc.UUCP
  9. Organization: Bell-Northern Research, Ottawa, Canada
  10. Lines: 41
  11.  
  12. In article <ratner.714247759@ficus.cs.ucla.edu> ratner@ficus.cs.ucla.edu (David Ratner) writes:
  13. >I most wholeheartedly agree.  At Cornell, where I did my undergrad, 
  14. >the first two computer programming classes are both taught in Pascal, 
  15. >both because Pascal is a more structured langauge than C (the compiler
  16. >complains much more often and is more strict than a C-compiler), and
  17. >because I feel it is "easier" as a introductory language, primarily
  18. >because of the difficulty in C with pointers.  Introductory students
  19. >have enough to worry about without having to learn about pointers
  20. >right off.  In C it just isn't that practical to do anything complicated
  21. >without using pointers.
  22.  
  23. Hmmmm...I disagree on this one. It may have been true some years ago that 
  24. the type checking etc. of Pascal made it easier on novice programmers but
  25. the latest ANSI C compilers do just as good a job of it as Pascal. I also
  26. don't feel it is a good idea to shield novice programmers from pointers. They
  27. will just end up with a "pointer phobia" and will find it hard to pick them
  28. up later on.
  29.  
  30. >Another reason to use Pascal.  C has the wonderful feature that you can write
  31. >incredibly obtuse code, and while it is possible to teach good coding
  32. >practices in C, I would argue that it is easier in a more structured
  33. >language like Pascal.
  34.  
  35. Trust me, you can write incredibly obtuse code in Pascal. Writing clear
  36. code should be part of any beginning programming course. I also don't see
  37. how it is easier to *teach* good coding practices in Pascal. A good teacher
  38. can teach good coding practices in any language.
  39.  
  40. I didn't post this to start a Pascal vs. C holy war. In my experience,
  41. however, being forced to program in Pascal for my introductory courses
  42. (waaay back) was a frustrating experience. It was even worse because at the
  43. time we were forced to use a context-sensitive editor ("Alice") which
  44. enforced the Pascal syntax as you were editing. It was supposed to help
  45. you learn the language in that it was impossible for you to create a 
  46. program which had syntax errors. It was a nightmare.
  47.  
  48. Andrew.
  49. -------------------------------------------------------------------------
  50. Not the opinions of BNR          | For the teddy bear who has everything:
  51. Andrew Sterian (613)765-2562     | a person.
  52. asterian@bnr.ca                  |
  53.