home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!torn!cunews!revcan!software.mitel.com!anderson
- From: anderson@Software.Mitel.COM (David Anderson)
- Newsgroups: comp.programming
- Subject: Re: Teaching the basics
- Message-ID: <12635@anderson>
- Date: 18 Aug 92 19:51:42 GMT
- References: <1992Aug17.123916.14815@husc13.harvard.edu> <Bt6DGq.HuB@metropolis.com>
- Organization: Mitel. Kanata (Ontario). Canada.
- Lines: 54
-
- 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.
-
- I have had students who had no prior programming knowledge attend my C
- class. I told them that they may find it to be an "overwelming" course.
- These students have either *barely* passed or have dropped out all
- together. This won't apply to all students, but in my experience C and
- the beginner programmer do not go well together!
-
- o Robert's other comment on Pointers is very valid. I cannot see how you can
- teach a C course without teaching Pointers. In Pascal, I could "get away"
- with not teaching pointers until the very end of the course because of
- Pascal's call by reference and value mechanisms. In C however, the concept
- of pointers *must* be taught at the very start of the course.
-
- Other general points in teaching any language:
-
- o Style! Teach the student consistent coding practices. Readability counts
- higher than fancy cryptic statements.
-
- o Meaningful Identifiers. Please make sure the student is not using variable
- names like "a" when you really mean something like "tax_rate"!
-
- o Teach them modular programming techniques. Emphasize how to make proper
- use of prototypes, static, auto, and global variables etc...
-
- That's most of the important ones anyway...
-
- Good luck in your class...
-
- Regards,
-
- /David
- --
- -------------------------------------------------------
- David AR Anderson Email: anderson@Software.Mitel.COM
- Software Tools and Integration
- Mitel Corporation Disclaimer: My opinions are my own!
-