comp.lang.ada
 help / color / mirror / Atom feed
From: crebralfix@angelfire.com (tom)
Subject: Re: A non-programmers interpretation of Ada code
Date: 1 Sep 2003 16:51:38 -0700
Date: 2003-09-01T23:51:40+00:00	[thread overview]
Message-ID: <626e8ae.0309011551.6dbb1ec@posting.google.com> (raw)
In-Reply-To: slrnbl68f3.6v0.randhol+abuse@kiuk0152.chembio.ntnu.no

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!



  parent reply	other threads:[~2003-09-01 23:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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