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

  1. Path: sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!enag
  2. From: enag@ifi.uio.no (Erik Naggum)
  3. Newsgroups: comp.programming
  4. Subject: Re: Teaching the basics
  5. Message-ID: <23311G@erik.naggum.no>
  6. Date: 19 Aug 92 17:29:04 GMT
  7. References: <1992Aug17.123916.14815@husc13.harvard.edu> <Bt6DGq.HuB@metropolis.com>
  8. Organization: Department of Informatics, University of Oslo, Norway
  9. Lines: 33
  10.  
  11. Robert Munyer <robert@metropolis.com> writes:
  12. |
  13. |   I'd say the most important skill that is lacked (!) by a whole lot
  14. |   of programmers, not necessarily only entry-level ones, is TESTING.
  15.  
  16. No, no.  Testing only yields negative data: "It didn't crash with this
  17. input."  Program defensively and don't rely on testing to find bugs,
  18. because you will never, ever be able to test for all the conditions that
  19. might crop up if you didn't exclude them before they could be problems
  20. by writing defensive, sound code.
  21.  
  22. |   There is way too much software in the world that will crash your machine
  23. |   depending on whether it is Tuesday and what phase the moon is in.
  24.  
  25. And guess why?  They didn't test it on a Tuesday or when the moon was
  26. waning.
  27.  
  28. |   P.S.  I know that C is fashionable, but it's really not a very good
  29. |   language for teaching complete beginners.  C has a lot of "traps and
  30. |   pitfalls" for the unwary.  When you're not even ready to learn about
  31. |   pointers, C is not much more than a twisted version of Pascal.  What
  32. |   good is C without pointers?
  33.  
  34. The main benefit of C without pointers is that you can have initialized
  35. objects.  Pascal is a "code only" language, and that's about 1/3 of a
  36. real programming language.  Then again, this is often most useful with
  37. pointers.  I don't consider programming worth teaching if you don't deal
  38. with dynamically allocated objects or pointers.  The question is not
  39. "what good is C without pointers" but "what good is a programmer who
  40. doesn't know pointers".
  41.  
  42. Best regards,
  43. </Erik>
  44. --
  45. Erik Naggum             |  ISO  8879 SGML     |      +47 295 0313
  46.                         |  ISO 10744 HyTime   |
  47. <erik@naggum.no>        |  ISO 10646 UCS      |      Memento, terrigena.
  48. <enag@ifi.uio.no>       |  ISO  9899 C        |      Memento, vita brevis.
  49.