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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,4d6944d2e49e7697,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-01 03:40:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: A non-programmers interpretation of Ada code Date: Mon, 1 Sep 2003 10:40:28 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1062412828 2679 129.241.83.78 (1 Sep 2003 10:40:28 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 1 Sep 2003 10:40:28 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:42029 Date: 2003-09-01T10:40:28+00:00 List-Id: 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 -- �I think fish is nice, but then I think that rain is wet. So who am I to judge.� - The Hitch Hiker's Guide to the Galaxy (radioplay)