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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, LOTS_OF_MONEY,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fc6f9338f3a892fe X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Marius Amado Alves" Newsgroups: comp.lang.ada Subject: Re: A couple of questions Date: Sat, 1 May 2004 11:56:04 -0700 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1083405494 16460 212.85.156.195 (1 May 2004 09:58:14 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sat, 1 May 2004 09:58:14 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-OriginalArrivalTime: 01 May 2004 09:58:03.0798 (UTC) FILETIME=[CB56CB60:01C42F62] X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: controlnews3.google.com comp.lang.ada:160 Date: 2004-05-01T11:56:04-07:00 Yeric wrote in message news:c6usqs$31m$1@sparta.btinternet.com... > Hello, > > I am new to ADA95 but not to programming in general, I know a little C/C++, > but have a strong VB background. Welcome! You can now start writing Ada not ADA as your first rite of passage :-) > I have been trying to move away from VB for a while now, I do not like the > language (my explanations could cover a book, so I will spare you all), > which is bizzare seeing as I know it so well, but then maybe it isnt so > bizzare :) Don't bother :-) > I have been trying to get to grips with C++ for about 7 months, but have > been struggling. with pointers or more precisely pointers to pointers and > arrays of pointers to arrays of functions, my head feels like it is going to > melt at times. A pointerless mind. Good. In Ada you very rarely need to use pointers (called access types and values in Ada). And when you do she will work hard to save you from shooting yourself in the foot. Ada 2005 will improve on this camp further. With the standard container library, you can forget about pointers entirely. Passing functions will be maximally simplified. Generics will be more powerfull. > I am in now way rubbishing C++ I believe that every programming language has > a niche, and fits somewhere, even VB for prototyping and small applications. Once you have the right environment setup, Ada is good for programming in the small also. I do all my 'scripting' in Ada. > I have read a few articles about Design by contract and find the concept > interesting, and wondered how ADA is able to handle this if at all? Generic units provide a LOT of contract. > I have already had a good read of LAW tutorial and find the whole thing very > interesting, and ADA syntax to be fairly straightforward to follow. The syntax is indeed very easy. And most of the language behaves as expected. In some specific idioms the semantics gets in your way. Stay away from limited types. > I see there is also good support for interfacing with other applications, > most noticeable COM/DCOM very useful if working in a Windows environment. And there are alternatives. GWindows, JWEL, Claw, GtkAda. > I am surprised not to see ADA so widely publicised like so many other well > known programming languages around, I know there is plenty of info on the > net, but not really anywhere else. There are books. Good ones BTW. > What niche does ADA fit into, I notice that it prides itself on embedded > systems, does it have any other special areas apart from what I can see in > military domains, or is it a good all rounder? I use Ada for artificial intelligence, text processing, web systems, database systems... (A "couple of questions" uh? :-)