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-Thread: a07f3367d7,c6a20d2912a41a27,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.85.3 with SMTP id d3mr1265020paz.18.1344855283430; Mon, 13 Aug 2012 03:54:43 -0700 (PDT) Path: p10ni51394108pbh.1!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.astraweb.com!border2.newsrouter.astraweb.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!feeder1.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!80.86.168.138.MISMATCH!news-feed.eu.lambdanet.net!news.bcc.de!newsfeeder.ewetel.de!goblin1!goblin.stu.neva.ru!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Patrick Newsgroups: comp.lang.ada Subject: Help with book, "Ada for Pyjama Coders" Date: Thu, 9 Aug 2012 13:50:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2368a84b-b0bd-4e06-ac2d-7882b16991b1@googlegroups.com> NNTP-Posting-Host: 70.53.16.194 Mime-Version: 1.0 X-Trace: posting.google.com 1344545410 8464 127.0.0.1 (9 Aug 2012 20:50:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 9 Aug 2012 20:50:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.194; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO User-Agent: G2/1.0 X-Received-Bytes: 4938 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-08-09T13:50:09-07:00 List-Id: Hi Everyone I was going to leave this until i was a long a little further but I want to= talk about it now due to Dufr's last thread. I rarely get to program while my kids are awake. I code in my pyjamas after= they go to bed. I have a whole bunch of Ada books and to be honest they ha= ve been very painful to read so late at night. I would have loved to have had an easy book that just introduced the basic = subset. I want to write a short book(maybe 50 to 70 pages) that will just p= rep someone for the full sized Ada books. I also think it's sad that there are "new" languages like Go that don't rea= lly do much more then Ada 83 + half 95. If Google just picked an Ada subset= and supported that, Ada would be the new and coolest thing. I don't think people like me need multiple inheritence and other Ada 2005 f= eatures and I bet I won't need Ada 2012 features either. A book that was no= t cluttered with these is just what pyjama coders need. I am collecting code segments I have several already but below are some samples. I plan on annotating each one of these: procedure Procedure_Example is --variable declarations go here begin null ; =20 end Procedure_Example; procedure In_Parameter_Example ( y : in Integer ) is x : Integer :=3D 1; begin null ; --do something with x and y =20 end In_Parameter_Example; procedure Out_Parameter_Example ( y : out Integer ) is x : Integer :=3D 1; begin null ; --do something with x and y =20 end Out_Parameter_Example; procedure In_Out_Parameter_Example ( y : in out Integer ) is x : Integer :=3D 1; begin null ; --do something with x and y =20 end In_Out_Parameter_Example; procedure Access_Parameter_Example ( y : access Integer ) is --variable declarations go here begin null ; --do something directly to y and not it's copy =20 end Access_Parameter_Example; procedure Default_Parameter_Example ( y : in Integer :=3D 0) is x : Integer :=3D 1; begin null ; --do something with x and y =20 end Default_Parameter_Example; Do you see how each of these only introduces one concept at a time and does= nothing in particular. I would have prefered to learn this way rather then= a full example that introduces several concepts at once. I think it I have= one of each of these on it's own page, with colour syntax highlighting it = will be easy to follow lat at night. Here is the rough table of contents I am considering: Part 1 Ada 83 "ish" Ada Lightning introduction to type system + Assignment statements lightning introduction to gcc and gnat identifiers, comments, null statement, blocks, scope, parameters, procedure= s, functions, If statements, Compound conditions, case statement, Range tests, Loops, ope= rators, packages, private types, generics, exception handling, renaming dec= larations, overloading Multitasking, Task types, Communicating with tasks, select statements, rend= ezvous, Sharing data between tasks with a passive task, Part 2 Types in more detail Defining new data types, Integer, Subtypes, Derived types, Modular integers= , Real types, Numeric literals, Constants, Enumerations, Boolean, Record ty= pes, Strings, Character types, array types, Discriminants, Limited types Toolchains in more detail, GCC/GNAT, pragmas, interfacing with C and buildi= ng shared C objects, text input output, File input/output, Stream input/output Part 3 A bit of Ada 95( No Ada 2005 and not all of Ada 95, no protected typ= es etc. ) Tagged types, Tagged types Appendix Ada Language legal rules Nothing covered that will be in the appendixes of other books Any feedback on this approach is welcome. =20