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-7-bit X-Google-Thread: 103376,7ee10ec601726fbf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 09:12:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!feeder.qis.net!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.com.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: is Ada dying? Date: Mon, 15 Oct 2001 16:10:52 GMT Organization: Emrad Ltd Message-ID: <3bcb08bc.29380186@news.demon.co.uk> References: <3BC30674.BA88AAB6@brighton.ac.uk> <9pvv3t$ves$1@news.huji.ac.il> <9q42jo$lu8$1@news1.sunrise.ch> <9q95lm$b4l$1@news.huji.ac.il> <3bca9c74.1660187@news.demon.co.uk> <9qedg903km@drn.newsguy.com> NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1003162261 nnrp-08:5870 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:14543 Date: 2001-10-15T16:10:52+00:00 List-Id: On 15 Oct 2001 03:24:09 -0700, Robert*@ wrote: >>Of course it is - Pascal was designed as a teaching language, Java >>wasn't designed. >did you mean to cut off the sentense above as is, Yes > i.e. did you mean to say that java was not designed, period, or that > it was not designed to be a teaching language? The former. >I think that software is becomming a more component based, where >most programmers know how to use those pieces of software as a black >box, Admittedly that is something that is lacking in Pascal, i.e. the concept of encapsulation which is more commonly associated with separate compilation. Modula-2 may be a better example. >and so many do not learn the more basic things in programming, >like data structures and records (in Java, programmers do not even >know what a record is :). These things are not learned well. Java >programmers do not even know too well about enumeration and parameters >passing mehanism, but know how to create an object or extend one and >use an interface. Enumeration types are an almost mandatory feature of any language that can claim to be safe but, even then, it depends on the implementation. Ada's definition of Enumeration types, and their use as array and loop bounds is excellent - the C++ version is vaguely useful, but not all that good relying too much on history. The fact that Java does not even have Enumeration types is, to me, a serious defect. >speaking of records. in true OO, the concept of a record does not exist >really. All what you have is an object, which contains attributes (state >information). So, I can sort of understand when a java programmer ask me >what is a record? I can understand that and, often, a record can be replaced by a Class with no behavioural aspects (i.e. no methods). The problem is that the overhead (possibly just in syntax) of a class can be a nuisance and confuse the issue and, certainly in Java, there is no way to define the representation of elements in a Class (unlike Ada with its very powerful representation clauses). To me this shows a great difference in the target audience of the languages, and their history.