From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4d6944d2e49e7697 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-01 16:51:40 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: crebralfix@angelfire.com (tom) Newsgroups: comp.lang.ada Subject: Re: A non-programmers interpretation of Ada code Date: 1 Sep 2003 16:51:38 -0700 Organization: http://groups.google.com/ Message-ID: <626e8ae.0309011551.6dbb1ec@posting.google.com> References: NNTP-Posting-Host: 200.10.225.77 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1062460300 20022 127.0.0.1 (1 Sep 2003 23:51:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 Sep 2003 23:51:40 GMT Xref: archiver1.google.com comp.lang.ada:42048 Date: 2003-09-01T23:51:40+00:00 List-Id: Preben Randhol wrote in message news:... > I asked two people that hasn't coded what they understood from the program > below. Here is the answer: > > First test person: > > > with Ada.Text_IO; use Ada.Text_IO; > > Hm, I dont' know this. This Ada.Text_IO must be a specific text or an > order. I guess it is Ada programming. So, use this specific > text/order and do something with this text/order. Probably there is > something that continuous after the final ";" > > > procedure Hello is > > begin > > Put_Line ("Hello World!"); > > end Hello; > > There is probably a starting procedure that is called "Hello". This > procedure starts with the phrase "Hello World!. So, when Hello > procedure starts one has "Hello World!" at the screen. Then the > Hello procedure ends. > > > > Does this code look more easy or more hard to understand than the > > C++ code below. > > > > #include > > > > int main() > > { > > std::cout << "Hello, world!\n"; > > } > > Ei! This is chineese. > (or "greek" for non-Greeks) > > Second test person: > > [About Ada program]: I think it prints Hello World to the screen as > it says Put_Line. > [About C++ program]: This is definiately harder to understand. I mean > what does std:cout mean? > > > Quite what I had anticipated. :-) > > Preben First, Ada is cool. Second, you now have to convince several million C++ programmers, professors, students and managers that C++ really does look like gibberish, is hard to maintain and filled with goofy rules that are more annoying than productive. Too bad the US market is driven by advertisements and not effectiveness!