home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16953 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.3 KB

  1. Path: sparky!uunet!mcsun!chsun!zurich!gegu
  2. From: gegu@zurich.spectrospin.ch (Gerry Gucher)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Pascal as C prelude?
  5. Summary: learn pascal before C ? Certainly yes
  6. Message-ID: <199@zurich.spectrospin.ch>
  7. Date: 21 Nov 92 17:13:12 GMT
  8. References: <forb0004.94.722315425@student.tc.umn.edu>
  9. Organization: Spectrospin AG, Fallanden Switzerland
  10. Lines: 40
  11.  
  12. In article <forb0004.94.722315425@student.tc.umn.edu>, forb0004@student.tc.umn.edu (Eric Forbis) writes:
  13. > The U of Mn suggests, but does not require, taking a quarter of Pascal 
  14. > before taking C. I have no experience with pascal, but have read that the 
  15. > two languages utilize similar concepts and structures couched in different 
  16. > terms. Is pascal really a useful introduction to C- should I be taking 
  17. > that class after all? It's not my intent to start a C vs pascal flame war 
  18. > here... It seems to me that, if pascal is that similar to C, you might as 
  19. > well forego pascal and hop right into C. 
  20. > Any thoughts?
  21.  
  22. I believe that it is a very good idea to learn Pascal before C.
  23.  
  24. Please do not expect that you have an easy time when switching from Pascal to C.
  25. Although the two languages use similar concepts, they are still very different.
  26.  
  27. The two languages have different syntax and emphasize different things.
  28. E.g C is very strong at dynamic memory handling, pointers and efficiency
  29. tricks, where on the other hand Pascal enforces a clean and structured
  30. design and coding style.
  31.  
  32. Your thinking and your programming style will benefit from learning Pascal
  33. first. But after that you will have to learn the C language in a separate
  34. step. Learning both will help you to write well structured, readable
  35. but still efficient programs. Achieving this by learning only one language
  36. is possible, but unlikely. 
  37.  
  38. +------------------------------------------------------------------+
  39. | Gerry Gucher                             gegu@spectrospin.ch       |
  40. | Spectrospin AG,  Industriestr 26,  8117  Faellanden Switzerland  | 
  41. +------------------------------------------------------------------+
  42. | A program that  returns the  wrong | There is nothing wrong with |
  43. | result twice as fast is infinitely | making  mistakes,  but make |
  44. | slower.               - H. Spencer | new ones.           - D.Sim |    
  45. +------------------------------------------------------------------+
  46.  
  47.  
  48.  
  49.  
  50.