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

* Re: A non-programmers interpretation of Ada code
  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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Stephane Richard @ 2003-09-01 10:59 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1868 bytes --]

proof is in the facts...and there are the facts :-)....indeed it is what you
anticipated :-).

-- 
St�phane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Preben Randhol" <randhol+abuse@pvv.org> wrote in message
news:slrnbl68f3.6v0.randhol+abuse@kiuk0152.chembio.ntnu.no...
> 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

* Re: A non-programmers interpretation of Ada code
  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-24 21:08 ` Lionel Draghi
  3 siblings, 1 reply; 8+ messages in thread
From: tom @ 2003-09-01 23:51 UTC (permalink / raw)


Preben Randhol <randhol+abuse@pvv.org> wrote in message news:<slrnbl68f3.6v0.randhol+abuse@kiuk0152.chembio.ntnu.no>...
> 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

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!



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

* Re: A non-programmers interpretation of Ada code
  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 10:11 ` chris
  2003-09-02 12:01   ` Preben Randhol
  2003-09-24 21:08 ` Lionel Draghi
  3 siblings, 1 reply; 8+ messages in thread
From: chris @ 2003-09-02 10:11 UTC (permalink / raw)


Preben Randhol wrote:
> I asked two people that hasn't coded what they understood from the program
> below. Here is the answer:

> Quite what I had anticipated. :-)

Interesting... try Pascal.  My bet is it will edge it for this simple 
example, but for a more complex example it will lose over Ada.




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

* Re: A non-programmers interpretation of Ada code
  2003-09-02 10:11 ` chris
@ 2003-09-02 12:01   ` Preben Randhol
  0 siblings, 0 replies; 8+ messages in thread
From: Preben Randhol @ 2003-09-02 12:01 UTC (permalink / raw)


chris wrote:
> Interesting... try Pascal.  My bet is it will edge it for this simple 
> example, but for a more complex example it will lose over Ada.

Well, Pascal uses Writeln which isn't exactly very understandable.

-- 
�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

* Re: A non-programmers interpretation of Ada code
  2003-09-01 23:51 ` tom
@ 2003-09-02 15:15   ` Adrian Hoe
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Hoe @ 2003-09-02 15:15 UTC (permalink / raw)


tom wrote:
> 
> 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!

US is not alone. Everywhere.




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

* Re: A non-programmers interpretation of Ada code
  2003-09-01 10:40 A non-programmers interpretation of Ada code Preben Randhol
                   ` (2 preceding siblings ...)
  2003-09-02 10:11 ` chris
@ 2003-09-24 21:08 ` Lionel Draghi
  2003-09-25  7:59   ` Preben Randhol
  3 siblings, 1 reply; 8+ messages in thread
From: Lionel Draghi @ 2003-09-24 21:08 UTC (permalink / raw)


Preben Randhol wrote:
> I asked two people that hasn't coded what they understood from the program
> below. Here is the answer:
> 
...
Here is an interesting dialog, in french : 
http://forum.hardware.fr/forum2.php3?post=25414&cat=10&config=&interface=&cache=&sondage=&owntopic=&p=1&trash=&subcat=381
(The URL will be cut).

The first student (named "switch") ask for explanation on access type.

Take a look at "R3g" answer, more or less: "I never used Ada, but I 
understand it all :-)".

And is second post is the code with explanations (note the // comments 
prefix :-). Comments are right.

"R3g" is not a non-programmers, but i still find this significant.

-- 
Lionel Draghi




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

* Re: A non-programmers interpretation of Ada code
  2003-09-24 21:08 ` Lionel Draghi
@ 2003-09-25  7:59   ` Preben Randhol
  0 siblings, 0 replies; 8+ messages in thread
From: Preben Randhol @ 2003-09-25  7:59 UTC (permalink / raw)


On 2003-09-24, Lionel Draghi <Lionel.Draghi@Ada-France.org> wrote:
> Here is an interesting dialog, in french : 
> http://forum.hardware.fr/forum2.php3?post=25414&cat=10&config=&interface=&cache=&sondage=&owntopic=&p=1&trash=&subcat=381
> (The URL will be cut).
>
> The first student (named "switch") ask for explanation on access type.
>
> Take a look at "R3g" answer, more or less: "I never used Ada, but I 
> understand it all :-)".
>
> And is second post is the code with explanations (note the // comments 
> prefix :-). Comments are right.
>
> "R3g" is not a non-programmers, but i still find this significant.

Very interesting :-)

Preben



^ 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