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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c31dbd48cbe96f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!57g2000hsv.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Java-Ada 2005 Syntax / Language Features Comparisons Date: Wed, 08 Aug 2007 23:44:11 -0700 Organization: http://groups.google.com Message-ID: <1186641851.035873.250020@57g2000hsv.googlegroups.com> References: <1186604907.961690.311040@b79g2000hse.googlegroups.com> NNTP-Posting-Host: 137.138.37.241 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1186641851 15746 127.0.0.1 (9 Aug 2007 06:44:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 9 Aug 2007 06:44:11 +0000 (UTC) In-Reply-To: <1186604907.961690.311040@b79g2000hse.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070724 Red Hat/1.5.0.12-0.3.slc3 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 57g2000hsv.googlegroups.com; posting-host=137.138.37.241; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1375 Date: 2007-08-08T23:44:11-07:00 List-Id: On 8 Sie, 22:28, michael.mcn...@usma.edu wrote: > Is anyone aware of a reference card or short document that shows > equivalent Ada syntax and language features with those of Java. > > Students could use this to understand data structure concepts written > in a book using Java, and then implement these concepts in code using > Ada 2005. These students are CS majors and will have already taken a > course in Ada. If they are CS majors, then they should be able to think in terms of abstracts and should not need such primitive cheat-sheets for 1:1 translations between languages. I would even go further and say that the whole idea is broken at the start. Java is reference-oriented whereas Ada is value-oriented, which has significant consequences in how high-level concepts like composition and aggregation are expressed in code - this goes much further than syntax differences. Teaching people to recode some stuff using "syntax equivalents" is a Bad Idea. Just my 0.05 Euro. -- Maciej Sobczak http://www.msobczak.com/