comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: A non-programmers interpretation of Ada code
Date: Mon, 1 Sep 2003 10:40:28 +0000 (UTC)
Date: 2003-09-01T10:40:28+00:00	[thread overview]
Message-ID: <slrnbl68f3.6v0.randhol+abuse@kiuk0152.chembio.ntnu.no> (raw)

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 <iostream>
   >
   > 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)



             reply	other threads:[~2003-09-01 10:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-01 10:40 Preben Randhol [this message]
2003-09-01 10:59 ` A non-programmers interpretation of Ada code Stephane Richard
2003-09-01 23:51 ` tom
2003-09-02 15:15   ` Adrian Hoe
2003-09-02 10:11 ` chris
2003-09-02 12:01   ` Preben Randhol
2003-09-24 21:08 ` Lionel Draghi
2003-09-25  7:59   ` Preben Randhol
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox