home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!ucla-cs!ratner
- From: ratner@ficus.cs.ucla.edu (David Ratner)
- Subject: Re: Teaching the basics
- Message-ID: <ratner.714247759@ficus.cs.ucla.edu>
- Sender: usenet@cs.ucla.edu (Mr Usenet)
- Nntp-Posting-Host: ipswich.cs.ucla.edu
- Organization: UCLA, Computer Science Department
- References: <1992Aug17.123916.14815@husc13.harvard.edu> <Bt6DGq.HuB@metropolis.com> <12635@anderson>
- Date: 19 Aug 92 18:09:19 GMT
- Lines: 51
-
- anderson@Software.Mitel.COM (David Anderson) writes:
-
- >In article <Bt6DGq.HuB@metropolis.com> robert@metropolis.com (Robert Munyer) writes:
- >>Yo, James!
- >>
- >[ Excellent Testing remarks delete...]
-
- >>P.S. I know that C is fashionable, but it's really not a very good language
- >>for teaching complete beginners. C has a lot of "traps and pitfalls" for the
- >>unwary. When you're not even ready to learn about pointers, C is not much
- >>more than a twisted version of Pascal. What good is C without pointers?
- >>
- >>They'd be better off starting with Pascal (or Modula-2 or -3), and switching
- >>to C only after they've learned how to use pointers in Pascal. Of course,
- >>often there are political considerations, and there's not much you can do.
-
- >I currently teach C and have taught Pascal for the local college here and
- >I tend to agree with Robert on the above comments.
-
- > o C is *not* a beginners language.
-
- [ comments deleted ]
-
- I most wholeheartedly agree. At Cornell, where I did my undergrad,
- the first two computer programming classes are both taught in Pascal,
- both because Pascal is a more structured langauge than C (the compiler
- complains much more often and is more strict than a C-compiler), and
- because I feel it is "easier" as a introductory language, primarily
- because of the difficulty in C with pointers. Introductory students
- have enough to worry about without having to learn about pointers
- right off. In C it just isn't that practical to do anything complicated
- without using pointers.
-
- Just as a side-note, the more advanced classes used C, Lisp, and everything
- else.
-
- >Other general points in teaching any language:
-
- > o Style! Teach the student consistent coding practices. Readability counts
- > higher than fancy cryptic statements.
- Another reason to use Pascal. C has the wonderful feature that you can write
- incredibly obtuse code, and while it is possible to teach good coding
- practices in C, I would argue that it is easier in a more structured
- language like Pascal.
-
- [ other general points deleted ]
- --
- * * *** * * | Dave "Van Damme" Ratner
- * * * * * * / \ ratner@cs.ucla.edu
- * * * * *** \ /
- *** *** *** * * | "Wham Bam, thank you Van Damme!"
-