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,208279d79d40e7d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-28 03:39:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Ada Advocacy. Date: Thu, 28 Aug 2003 10:39:11 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <7aR2b.4121$Xw6.1358@nwrdny03.gnilink.net> 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 1062067151 18649 129.241.83.78 (28 Aug 2003 10:39:11 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 28 Aug 2003 10:39:11 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:41915 Date: 2003-08-28T10:39:11+00:00 List-Id: Luke A. Guest wrote: > Ok, fair enough, but why would so many courses create their own child > packages for I/O? Does it not support printing of different types as > standard? I don't know. Perhaps it is the way they want to teach Ada? But that you claim Hello world in Ada is so difficult I cannot understand at all. Please compare: with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Line ("Hello World!"); end Hello; to the C++ version #include int main() { std::cout << "Hello, world!\n"; } Which is more complicated to understand, remember and read for a complete beginner in programming? Trying to imagine the questions from a beginner I would think the following would come up: Ada version: 1. What does with Ada.Text_IO; use Ada.Text_IO; mean C++ version: 1. What does #include mean? 2. What is int main() ? 3. What is std::cout ? 4. Why is there << in front of "Hello world" ? 5. What does \n mean? The reason I don't think there are more questions to the Ada version is that it reads well and the beginner probably can relate to what procedure mean as one have procedures for doing things in other situations. I also think that Put_Line ("") is understood without difficulty. Note I'm talking about a person who has not opened a single computer programming book or have any other knowledge. I think I'll try to send these two examples to some people I know that know nothing of programming and have then try to explain what the program does for me :-) 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)