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

  1. Xref: sparky alt.msdos.programmer:3028 comp.os.msdos.programmer:11653 comp.sys.ibm.pc.programmer:689 comp.lang.c++:18458 comp.lang.c:18924
  2. Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,comp.lang.c++,comp.lang.c
  3. Path: sparky!uunet!grebyn!daily!malak
  4. From: malak@grebyn.com (Michael Malak)
  5. Subject: Re: Newbie Wants Advice on C-Programming
  6. Message-ID: <1992Dec28.051247.11699@grebyn.com>
  7. Organization: Grebyn Timesharing
  8. References: <1992Dec25.073517.16089@grebyn.com> <1992Dec27.031740.27262@mole-end.matawan.nj.us> <1992Dec28.003320.5437@sequent.com>
  9. Date: Mon, 28 Dec 1992 05:12:47 GMT
  10. Lines: 78
  11.  
  12. In article <1992Dec28.003320.5437@sequent.com> furballs@sequent.com (Paul Penrod) writes:
  13. >In article <1992Dec27.031740.27262@mole-end.matawan.nj.us> mat@mole-end.matawan.nj.us writes:
  14. >>In article <1992Dec25.073517.16089@grebyn.com>, malak@grebyn.com (Michael Malak) writes:
  15. >>> In article <1992Dec25.050515.20871@ncsu.edu> bank@lea.csc.ncsu.edu (Belgarath the Sorcerer) writes:
  16. >>
  17. >>> >4) Even if you're not going into OOP, do NOT take up Pascal as
  18. >>> >    a road to C. ...
  19. >> 
  20. >>> Oh?  Have you ever seen C code written by a former FORTRAN programmer?
  21. >>> If so, by how many?  Universally you will find:
  22. >>>    1) Very short, illegible variable and function names, with the
  23. >>>       first character wasted (all integers must start with 'i', don't
  24. >>>       you know)
  25. >>>    2) No use of structures
  26. >>>    3) No linked lists or trees
  27. >>>    4) No whitespace
  28. >>>    5) Lots of illegible "creative" formulas
  29. >>>    6) No comments
  30. >>
  31. >>As one who learned FORTRAN first, I consider this a slur; were it applied
  32. >>to me directly it would be a libel.  The word `Universally' is used in
  33. >>error.
  34. >>
  35. >>Before I learned C I began to declare all my FORTRAN variables; there
  36. >>were no wasted initial letters.  And after I learned C, my FORTRAN began
  37. >>to look like C.
  38. >>
  39. >>A FORTRAN programmer who meets bad C will not learn good habits from it;
  40. >>a FORTRAN programmer who meets good C will.  `Good C' does not just mean
  41. >>C free from the defects you give; it means C that expresses a good design
  42. >>using C's idioms well.
  43. >>
  44. >>If the FORTRAN programmer whom you have watched learn C did not have good
  45. >>C to learn from, do not blame C.
  46. >>-- 
  47. >> (This man's opinions are his own.)
  48. >> From mole-end                Mark Terribile
  49. >>
  50. >> mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
  51. >
  52. >This is so true. People forget that the language is the human form
  53. >of expression to the computer of EXACTLY what to do. Features don't
  54. >really mean anything, unless they are directly applicable to a
  55. >particular solution.
  56. >
  57. >But, more to the point, to support your position, a properly
  58. >thought out algorithym that is expressed cleanly can be followed to
  59. >its conclusion no matter what the language. I had the opportunity
  60. >to convert some AI based material from LISP to C a while back.
  61. >Having never learned LISP, I was a bit concerned that one of the
  62. >features of the language would cause me no end of grief in trying
  63. >to understand what the software designer had in mind.
  64. >
  65. >Fortunatly the designer had anticipated his code would require
  66. >support in the future and wrote it with that in mind. It became not
  67. >only a very good expression of the problem he was solving, but an
  68. >excellent example in how to write good LISP code as well.
  69. >
  70. >My biggest headache with PASCAL is that it tries to force the
  71. >programmer to think in bounded terms, the likes of which they never
  72. >seem to recover without a lot of grief in the process. I really
  73. >dislike the type restrictions, plus the brain dead way the force
  74. >you to declare things up front. Using it to develop, in my opinion,
  75. >would be the same as forcing an author to write a book, with no
  76. >Thesaurus, Dictionary, or documentation for the brand new WP he's
  77. >just received on the desk; which he's never seen before.
  78. >Eventually he'll get there, but not without a lot of aggravation
  79. >and serious stifling of creative expression. In a sense the tool
  80. >determines the solution path, not the programmer.
  81. >
  82. >JMHO...
  83.  
  84. Now just where is a beginner supposed to learn "cleanly-expressed" C,
  85. given a background in FORTRAN?
  86.  
  87. One of my points somewhere in this thread was that all the structured
  88. programming teachers know Pascal, not C. 
  89.  
  90.