comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Online conceptual/tutorial material for Ada, was: Re: specification file ads problem
Date: Mon, 06 Oct 2014 15:40:56 +0200
Date: 2014-10-06T15:40:56+02:00	[thread overview]
Message-ID: <m0u65b$ma6$1@dont-email.me> (raw)
In-Reply-To: <r9Odne4m9IiVCa_JnZ2dnUVZ57ydnZ2d@giganews.com>

Le 06/10/2014 15:07, Peter Chapin a écrit :
> On 2014-10-06 08:13, G.B. wrote:
> 
>> Would there possibly be some way of introducing Ada's user defined
>> scalar types earlier?  This would give credit to McCormick's most
>> prominent finding, namely that use of Ada's user defined scalars
>> is a real, non-marketing boost in productivity. In particular, this
>> feature of the Ada language has been found to boost newcomers' results.
> 
> Yes, I'm sure it could be done... just have to reflect a little on the
> best way to present it. I think some students, at least the ones I've
> had, find detailed discussion of types up front rather dry. Of course it
> wouldn't be necessary to talk about every detail and nuance to get the
> important ideas across. In fact, the point of my little tutorial is to
> try and present the core ideas in as minimalistic a way as possible so
> cutting out details is in keeping with that philosophy.
> 

Just a note from a long-long-time teacher:

1) People remember what they see first
2) People reproduce what they remember
3) Disclaimers are not remembered

Therefore, starting with Integer, even with a disclaimer that it's just
for the purpose of small examples, will completely weaken the message
that proper types should be defined.

My advice (and what I do in my own courses):
Introduce very early simple (and easy to understand) types like:
   type Age is range 0..125;
   type Floor is range -5 .. 15;
   type Color is (Black, Red, Green, Blue, White);

and use only these in all examples.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr


  reply	other threads:[~2014-10-06 13:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-05 15:39 specification file ads problem Stribor40
2014-10-05 16:20 ` mockturtle
2014-10-06 21:34   ` Adam Beneschan
2014-10-05 16:29 ` AdaMagica
2014-10-05 16:32 ` Simon Wright
2014-10-05 17:06   ` Online conceptual/tutorial material for Ada, was: " Simon Clubley
2014-10-05 18:44     ` Niklas Holsti
2014-10-05 19:53     ` Peter Chapin
2014-10-06  7:55       ` Simon Wright
2014-10-06 11:08         ` Peter Chapin
2014-10-06 12:13           ` G.B.
2014-10-06 13:07             ` Peter Chapin
2014-10-06 13:40               ` J-P. Rosen [this message]
2014-10-06 22:30             ` Simon Clubley
2014-10-07 18:39               ` Peter Chapin
2014-10-06  8:12     ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox