comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: basic basic ada question
Date: Fri, 20 Oct 2006 20:54:51 GMT
Date: 2006-10-20T20:54:51+00:00	[thread overview]
Message-ID: <vIa_g.246419$1i1.215609@attbi_s72> (raw)
In-Reply-To: <eh9tlo$fcg$1@cernne03.cern.ch>

Maciej Sobczak wrote:
> 
> It's a bit of overstatement and I, personally, don't find it to be the 
> case. I would rather claim that if someone brings some bad habits from C 
> or C++ to Ada, they were already bad habits in C and C++ anyway.

Well, yes. Overstatement tends to attract the attention, and thus get 
the reader to think about it. Saying "Ada is different from C" is 
obvious, and will be ignored. You'll still get Ada-C, with pointers 
everywhere. Saying "Everything you know from C is wrong" might get him 
looking for ways to do things differently.

> Thinking in Ada is probably the same bad idea as thinking in C or C++ - 
> at least if the final goal is not to have fun with the language (that's 
> also a valid reason to write programs, really), but rather to build good 
> final software. In this latter case thinking in terms of good 
> engineering principles is the keyword - and then either any given 
> language makes the implementation of these principles possible or not. 
> This means that "thinking" in any particular language is already a bad 
> idea and *using* the language to implement the chosen engineering 
> principles is much more correct.

I should have said "the Ada mindset", which is also known as "the SW 
engineering mindset", but when you're knocking out these posts you often 
don't have time to perfect your wording. But ...

Thinking in terms of the language is not as good as thinking in SW 
engineering concepts, but when a person is thinking in C/++, thinking in 
Ada is much closer to those concepts than the way the person is 
thinking. Getting a coder to consider thinking in such concepts is 
harder than getting him to consider thinking in another language. Once 
he starts thinking in Ada, the final step is much easier.

-- 
Jeff Carter
"I was hobbling along, minding my own business, all of a
sudden, up he comes, cures me! One minute I'm a leper with
a trade, next minute my livelihood's gone! Not so much as a
'by your leave!' You're cured, mate. Bloody do-gooder!"
Monty Python's Life of Brian
76



  reply	other threads:[~2006-10-20 20:54 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-19 14:30 basic basic ada question markww
2006-10-19 14:47 ` Georg Bauhaus
2006-10-19 15:10   ` markww
2006-10-21 10:29     ` Stephen Leake
2006-10-19 15:11 ` Dmitry A. Kazakov
2006-10-19 15:45   ` markww
2006-10-19 16:29     ` Gautier
2006-10-19 17:16     ` Dmitry A. Kazakov
2006-10-19 20:07     ` Jeffrey R. Carter
2006-10-19 22:20       ` Robert A Duff
2006-10-20  5:10         ` Jeffrey R. Carter
2006-10-20  7:13           ` Maciej Sobczak
2006-10-20 20:39             ` Jeffrey R. Carter
2006-10-20  7:25       ` Maciej Sobczak
2006-10-20 20:54         ` Jeffrey R. Carter [this message]
2006-10-19 21:30 ` James Alan Farrell
2006-10-19 23:03   ` Robert A Duff
2006-10-20  4:54   ` Jeffrey R. Carter
2006-10-20  7:53   ` Dmitry A. Kazakov
2006-10-20  8:17     ` Maciej Sobczak
2006-10-20  9:08       ` Dmitry A. Kazakov
2006-10-20 11:15         ` Maciej Sobczak
2006-10-20 12:19           ` Dmitry A. Kazakov
2006-10-20 12:38             ` Maciej Sobczak
2006-10-20 13:26               ` Dmitry A. Kazakov
2006-10-20 15:29             ` Robert A Duff
2006-10-20 17:37               ` Dmitry A. Kazakov
2006-10-20 20:59                 ` Robert A Duff
2006-10-21 13:39                   ` Dmitry A. Kazakov
2006-10-21 17:53                     ` Robert A Duff
2006-10-22  8:45                       ` Dmitry A. Kazakov
2006-10-23  7:45                     ` Maciej Sobczak
2006-10-23  9:21                       ` Dmitry A. Kazakov
2006-10-23 14:30                         ` Maciej Sobczak
2006-10-23 15:08                           ` Dmitry A. Kazakov
2006-10-23 15:49                             ` Robert A Duff
2006-10-24  7:34                               ` Dmitry A. Kazakov
2006-10-20 19:04           ` Simon Wright
2006-10-20 15:27         ` Robert A Duff
2006-10-20 17:37           ` Dmitry A. Kazakov
2006-10-20 21:00     ` Jeffrey R. Carter
2006-10-21  8:19       ` Dmitry A. Kazakov
2006-10-21 17:32         ` Robert A Duff
2006-10-22  8:45           ` Dmitry A. Kazakov
2006-10-30 11:46             ` Martin Krischik
replies disabled

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