home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / ada / 3711 < prev    next >
Encoding:
Text File  |  1992-12-16  |  5.2 KB  |  123 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
  3. From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
  4. Subject: Re: FORTRAN bug(was Re: C++ vs. Ada -- Is Ada loosing?)
  5. Message-ID: <1992Dec16.160211.21619@mksol.dseg.ti.com>
  6. Organization: Texas Instruments Inc
  7. References: <EACHUS.92Dec7184734@oddjob.mitre.org> <1992Dec8.072300.21473@smds.com>     <1992Dec8.172551.16780@newshost.lanl.gov>     <1992Dec9.060218.23940@seas.gwu.edu>     <1992Dec11.132942.24054@mksol.dseg.ti.com>     <OBRY.92Dec11164203@cheesesteak.flash.bellcore.com>     <1992Dec14.170013.18494@mksol.dseg.ti.com> <OBRY.92Dec16094056@cheesesteak.flash.bellcore.com>
  8. Date: Wed, 16 Dec 1992 16:02:11 GMT
  9. Lines: 112
  10.  
  11. In <OBRY.92Dec16094056@cheesesteak.flash.bellcore.com> obry@flash.bellcore.com (Pascal Obry) writes:
  12.  
  13.  
  14. >>>Why do you use english ?
  15. >>
  16. >>Because it's what everyone else speaks?  If this is your defense of
  17.  
  18. >I hope you didn't mean *everyone*, because in this case you would have
  19. >forgotten 3/4 of the world (and maybe more in the univers). Anyhow if you mean
  20. >that you should travel a bit !
  21.  
  22. Well, I expect that I've travelled at least as much as most (all that
  23. military time, you know), and I'll stand by that statement.  Why are
  24. we speaking English here?  Why do all pilots and ATC centers speak it
  25. (except those in the former Soviet Union -- and they'll probably wind
  26. up changing over)?
  27.  
  28. >>Ada, it is a poor one.  If you want something that 'everybody can
  29. >>read', you should be using COBOL.  It was designed with the idea in
  30. >>mind that MANAGERS should be able to look at a program and tell what
  31. >>it does without knowing the language. 
  32.  
  33. >I had to learn COBOL for one of my courses 5 years ago, and by the way it
  34. >does very well what it is suppose to do : file manipulation and form to enter
  35. >data.
  36.  
  37. [The attributions got screwed up somewhere along in here, since I said
  38. part, but not all, of what is below with >>>.  Let's be careful out
  39. there!] 
  40.  
  41. >>>I like Ada because you can *read* it. And this seem to be one of the most
  42. >>>important thing about a language. With goods choices for the identifier, you
  43. >>>can read an Ada progam like a text, you don't have to translate what you read
  44.  
  45. >>>Golly gee whiz, you have to actually KNOW THE LANGUAGE to read it.
  46. >                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  47. >>>Horrors!  Oddly enough, I expect anyone reading a program and
  48. >>>expecting to understand it to be able to read the language.  If you
  49. >>>hand somebody a bunch of Ada code, they're going to be able to read
  50. >>>and understand it?  Gee, how is that going to work?  They're going to
  51. >>>know what pragmas do, things like packages and generics, etc.?  I
  52. >>>don't THINK so.
  53.  
  54. >I don't agree here. let me take a small example :
  55.  
  56. >In C++ :
  57.  
  58. >    cout << "un text" << endl;
  59. >    c++;
  60. >    if (i) { ... };                 /* let suppose i is an integer */
  61. >    for (k=0; k<4; k++) {...}
  62.  
  63. >In Ada :
  64.  
  65. >    text_io.put_line ("Un text");
  66. >    c := c + 1;
  67. >    if i = 1 then ... end if;
  68. >    for k in 0 .. 3 loop ... end loop;
  69.  
  70. >I bet that people that don't know either C++ and Ada will understand the Ada
  71. >code. Could we think the same of C++ code ? there is too much conventions
  72. >in C/C++ :
  73.  
  74. Why would one expect (or want) people who do not know a language to be
  75. looking at and evaluating code?
  76.  
  77. >    if (i) {..}
  78. >        true if i = 1, you can invent that, you have to learn it
  79.  
  80. >    for (k=0; k<4; k++) {...}
  81. >        first parameter is to initialize
  82. >        second stop test
  83. >        third whatever you want
  84.  
  85. >Ok, this is only one instruction. But don't you think that a whole program is
  86. >a set of instructions.
  87.  
  88. >And we can find a lot of more exemple like this. But I don't want to start a
  89. >language war.
  90.  
  91. Then why bring it up?  Is it standard practice where you are for
  92. people who don't know a language to be evaluating, writing, or
  93. maintaining code?  'Readability' is a red herring, except insofar as
  94. it applies to people who know the language.  It applies not to 'funny
  95. function names' or 'verboseness', but to the ability to build
  96. constructs that someone who UNDERSTANDS the language has difficulty
  97. deciphering the effect of.  This is certainly probably easier in C/C++
  98. than in Ada, but that's not exactly germane.  It just says that people
  99. who don't understand how to write readable code should probably
  100. preferentially be working in a language that will TRY to force them to
  101. (like Pascal or Ada).  Note, however, that this is certainly no
  102. guarantee, since obscure or opaque code can be written in any
  103. language. 
  104.  
  105. >Anyhow this is only one part of the readability. The low-level readability or
  106. >instruction readability. I don't mean that an Ada algorithm of many lines will
  107. >be easy to understand at the first look. But at least, I think it will be
  108. >easy to follow line by line what it does.
  109.  
  110. As will the C++ program, if you 'speak' C++
  111.  
  112. >An Ada program does what it says.
  113.  
  114. So does any other program.  Your argument seems to boil down to saying
  115. that Ada is 'better' because it can be understood by someone who
  116. doesn't know Ada.  That is both irrelevant AND untrue.
  117.  
  118. -- 
  119. "Insisting on perfect safety is for people who don't have the balls to live
  120.  in the real world."   -- Mary Shafer, NASA Ames Dryden
  121. ------------------------------------------------------------------------------
  122. Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
  123.