comp.lang.ada
 help / color / mirror / Atom feed
* A non-programmers interpretation of Ada code
@ 2003-09-01 10:40 Preben Randhol
  2003-09-01 10:59 ` Stephane Richard
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Preben Randhol @ 2003-09-01 10:40 UTC (permalink / 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)



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-09-25  7:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 10:40 A non-programmers interpretation of Ada code Preben Randhol
2003-09-01 10:59 ` 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

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