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

  1. Path: sparky!uunet!hotmomma!acc1bbs!dick.zeitlin
  2. From: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Newbie Wants Advice o
  5. Message-ID: <4503.102.uupcb@ssr.com>
  6. Date: 29 Dec 92 17:06:00 GMT
  7. Distribution: world
  8. Organization: Advanced Computer Concepts BBS, New Rochelle, NY 914-654-1981
  9. Reply-To: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 
  10. Lines: 37
  11.  
  12.   > .>> Oh?  Have you ever seen C code written by a former FORTRAN programmer?
  13.   > .>> If so, by how many?  Universally you will find:
  14.   > .>>    1) Very short, illegible variable and function names, with the
  15.   > .>>       first character wasted (all integers must start with 'i', don't
  16.   > .>>       you know)
  17.   > .>>    2) No use of structures
  18.   > .>>    3) No linked lists or trees
  19.   > .>>    4) No whitespace
  20.   > .>>    5) Lots of illegible "creative" formulas
  21.   > .>>    6) No comments
  22.  
  23. MM> .My error, and it is genuine, is that I omitted "self-taught"; i.e., I
  24.   > .was referring to those FORTRAN programmers who taught themselves C in a
  25.   > .vacuum.
  26.  
  27. No, your error is in assuming that the FORTRAN programmers that you know
  28. are indeed typical.  I'm a self-taught Asm, FORTRAN, BASIC, COBOL,
  29. Pascal, C, etc. programmer.  I started doing FORTRAN using FORTRANSIT on
  30. an IBM 650, and my FORTRAN code doesn't have any of the characteristics
  31. that you outline above.  (I _was_ constrained to 7 character variable
  32. names, since that's the language syntax.)
  33.  
  34. Good technique has always been good technique, and bad technique will
  35. always be bad technique.  There's far more obfuscated C code than
  36. unreadable FORTRAN code.  Many C coders seem to take a perverse pride in
  37. generating virtually unreadable trash that often borders on being
  38. unmaintainable.
  39.  
  40. And, of course, there's an "Obfuscated C" contest, but no corresponding
  41. obfuscated Pascal, FORTRAN, COBOL, etc. contest.
  42.  
  43. (Your apology is accepted...  <~> )
  44.  
  45.         D/
  46. ---
  47.  . QMPro 1.0 41-3345 . Bring back A-N airways!!    Dick.Zeitlin%acc1bbs@ssr.com
  48.                                                               
  49.