home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!enag
- From: enag@ifi.uio.no (Erik Naggum)
- Newsgroups: comp.programming
- Subject: Re: Teaching the basics
- Message-ID: <23311G@erik.naggum.no>
- Date: 19 Aug 92 17:29:04 GMT
- References: <1992Aug17.123916.14815@husc13.harvard.edu> <Bt6DGq.HuB@metropolis.com>
- Organization: Department of Informatics, University of Oslo, Norway
- Lines: 33
-
- Robert Munyer <robert@metropolis.com> writes:
- |
- | I'd say the most important skill that is lacked (!) by a whole lot
- | of programmers, not necessarily only entry-level ones, is TESTING.
-
- No, no. Testing only yields negative data: "It didn't crash with this
- input." Program defensively and don't rely on testing to find bugs,
- because you will never, ever be able to test for all the conditions that
- might crop up if you didn't exclude them before they could be problems
- by writing defensive, sound code.
-
- | There is way too much software in the world that will crash your machine
- | depending on whether it is Tuesday and what phase the moon is in.
-
- And guess why? They didn't test it on a Tuesday or when the moon was
- waning.
-
- | 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?
-
- The main benefit of C without pointers is that you can have initialized
- objects. Pascal is a "code only" language, and that's about 1/3 of a
- real programming language. Then again, this is often most useful with
- pointers. I don't consider programming worth teaching if you don't deal
- with dynamically allocated objects or pointers. The question is not
- "what good is C without pointers" but "what good is a programmer who
- doesn't know pointers".
-
- Best regards,
- </Erik>
- --
- Erik Naggum | ISO 8879 SGML | +47 295 0313
- | ISO 10744 HyTime |
- <erik@naggum.no> | ISO 10646 UCS | Memento, terrigena.
- <enag@ifi.uio.no> | ISO 9899 C | Memento, vita brevis.
-