home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / msdos / programm / 3022 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  2.1 KB

  1. Xref: sparky alt.msdos.programmer:3022 comp.os.msdos.programmer:11636 comp.sys.ibm.pc.programmer:683 comp.lang.c++:18441 comp.lang.c:18911
  2. Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,comp.lang.c++,comp.lang.c
  3. Path: sparky!uunet!mole-end!mat
  4. From: mat@mole-end.matawan.nj.us
  5. Subject: Re: Newbie Wants Advice on C-Programming
  6. Message-ID: <1992Dec27.031740.27262@mole-end.matawan.nj.us>
  7. Summary: Yes, I have seen C written by a FORTRAN programmer ...
  8. Organization: :
  9. References: <1992Dec24.154204.25248@blkbox> <1992Dec24.230420.4243@sequent.com> <1992Dec25.073517.16089@grebyn.com>
  10. Date: Sun, 27 Dec 1992 03:17:40 GMT
  11. Lines: 37
  12.  
  13. In article <1992Dec25.073517.16089@grebyn.com>, malak@grebyn.com (Michael Malak) writes:
  14. > In article <1992Dec25.050515.20871@ncsu.edu> bank@lea.csc.ncsu.edu (Belgarath the Sorcerer) writes:
  15.  
  16. > >4) Even if you're not going into OOP, do NOT take up Pascal as
  17. > >    a road to C. ...
  18.  
  19. > Oh?  Have you ever seen C code written by a former FORTRAN programmer?
  20. > If so, by how many?  Universally you will find:
  21. >    1) Very short, illegible variable and function names, with the
  22. >       first character wasted (all integers must start with 'i', don't
  23. >       you know)
  24. >    2) No use of structures
  25. >    3) No linked lists or trees
  26. >    4) No whitespace
  27. >    5) Lots of illegible "creative" formulas
  28. >    6) No comments
  29.  
  30. As one who learned FORTRAN first, I consider this a slur; were it applied
  31. to me directly it would be a libel.  The word `Universally' is used in
  32. error.
  33.  
  34. Before I learned C I began to declare all my FORTRAN variables; there
  35. were no wasted initial letters.  And after I learned C, my FORTRAN began
  36. to look like C.
  37.  
  38. A FORTRAN programmer who meets bad C will not learn good habits from it;
  39. a FORTRAN programmer who meets good C will.  `Good C' does not just mean
  40. C free from the defects you give; it means C that expresses a good design
  41. using C's idioms well.
  42.  
  43. If the FORTRAN programmer whom you have watched learn C did not have good
  44. C to learn from, do not blame C.
  45. -- 
  46.  (This man's opinions are his own.)
  47.  From mole-end                Mark Terribile
  48.  
  49.  mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
  50.