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

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!walter!obry
  3. From: obry@flash.bellcore.com (Pascal Obry)
  4. Subject: Re: FORTRAN bug(was Re: C++ vs. Ada -- Is Ada loosing?)
  5. In-Reply-To: mccall@mksol.dseg.ti.com's message of Mon, 14 Dec 1992 17:00:13 GMT
  6. Message-ID: <OBRY.92Dec16094056@cheesesteak.flash.bellcore.com>
  7. Sender: news@walter.bellcore.com
  8. Nntp-Posting-Host: cheesesteak.bellcore.com
  9. Organization: /u/obry/.organization
  10. References: <EACHUS.92Dec7184734@oddjob.mitre.org> <1992Dec8.072300.21473@smds.com>
  11.     <1992Dec8.172551.16780@newshost.lanl.gov>
  12.     <1992Dec9.060218.23940@seas.gwu.edu>
  13.     <1992Dec11.132942.24054@mksol.dseg.ti.com>
  14.     <OBRY.92Dec11164203@cheesesteak.flash.bellcore.com>
  15.     <1992Dec14.170013.18494@mksol.dseg.ti.com>
  16. Date: 16 Dec 92 09:40:56
  17. Lines: 110
  18.  
  19.  
  20. >>Why do you use english ?
  21. >
  22. >Because it's what everyone else speaks?  If this is your defense of
  23.  
  24. I hope you didn't mean *everyone*, because in this case you would have
  25. forgotten 3/4 of the world (and maybe more in the univers). Anyhow if you mean
  26. that you should travel a bit !
  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. >Why do you use english ?
  38.  
  39. Because it's what everyone else speaks?  If this is your defense of
  40. Ada, it is a poor one.  If you want something that 'everybody can
  41. read', you should be using COBOL.  It was designed with the idea in
  42. mind that MANAGERS should be able to look at a program and tell what
  43. it does without knowing the language. 
  44.  
  45. >( > @ - + / ~ $
  46.  
  47. >==============================
  48. >Because I'am the only one to know this language I put below the dictionary :
  49.  
  50. >> this
  51. >( try
  52. >$ word
  53. >+ it
  54. >, -
  55. >/ is
  56. >@ language
  57. >~ without
  58. >==============================
  59.  
  60.  
  61. >>I like Ada because you can *read* it. And this seem to be one of the most
  62. >>important thing about a language. With goods choices for the identifier, you
  63. >>can read an Ada progam like a text, you don't have to translate what you read
  64.  
  65. >>Golly gee whiz, you have to actually KNOW THE LANGUAGE to read it.
  66.                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  67. >>Horrors!  Oddly enough, I expect anyone reading a program and
  68. >>expecting to understand it to be able to read the language.  If you
  69. >>hand somebody a bunch of Ada code, they're going to be able to read
  70. >>and understand it?  Gee, how is that going to work?  They're going to
  71. >>know what pragmas do, things like packages and generics, etc.?  I
  72. >>don't THINK so.
  73.  
  74. I don't agree here. let me take a small example :
  75.  
  76. In C++ :
  77.  
  78.     cout << "un text" << endl;
  79.     c++;
  80.     if (i) { ... };                 /* let suppose i is an integer */
  81.     for (k=0; k<4; k++) {...}
  82.  
  83. In Ada :
  84.  
  85.     text_io.put_line ("Un text");
  86.     c := c + 1;
  87.     if i = 1 then ... end if;
  88.     for k in 0 .. 3 loop ... end loop;
  89.  
  90. I bet that people that don't know either C++ and Ada will understand the Ada
  91. code. Could we think the same of C++ code ? there is too much conventions
  92. in C/C++ :
  93.  
  94.     if (i) {..}
  95.         true if i = 1, you can invent that, you have to learn it
  96.  
  97.     for (k=0; k<4; k++) {...}
  98.         first parameter is to initialize
  99.         second stop test
  100.         third whatever you want
  101.  
  102. Ok, this is only one instruction. But don't you think that a whole program is
  103. a set of instructions.
  104.  
  105. And we can find a lot of more exemple like this. But I don't want to start a
  106. language war.
  107.  
  108. Anyhow this is only one part of the readability. The low-level readability or
  109. instruction readability. I don't mean that an Ada algorithm of many lines will
  110. be easy to understand at the first look. But at least, I think it will be
  111. easy to follow line by line what it does.
  112.  
  113. An Ada program does what it says.
  114.  
  115. Pascal.
  116.  
  117. --
  118.  
  119. -------------------------------------------------------------------------------
  120. --  Pascal OBRY                                     --
  121. --  Room 2D-337                e_mail : obry@bellcore.com           --
  122. --  Bellcore                                     --
  123. --  445 South Street            voice : 1 - 201 829 4039         --
  124. --  Post Office Box 1910        FAX   : 1 - 201 829 5981         --
  125. --  Morristown, New Jersey 07962-1910                         --
  126. -------------------------------------------------------------------------------
  127.  
  128.   `` inheritance is surely a good answer, but who knows the question ? ''
  129.