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

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