comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Using ARRAYS for grade reporting?
Date: 1998/04/19
Date: 1998-04-19T00:00:00+00:00	[thread overview]
Message-ID: <dewar.893038934@merv> (raw)
In-Reply-To: 6hdfoc$h6i@lotho.delphi.com


tmoran says

<<It would be nice to distinguish between fact and opinion in messages.

>(remembe that the use of String here is just plain wrong :-))
 This is a fact about the Ada language and Ada compilers.
>But another point is that the use of plurals for the field names is
>styulistically incorrect. The field names should be Name and Grade
 This is an opinion of the author (which I share), not a fact.
Unless of course somebody has actually done research conclusively
demonstrating that using plural field names substantially increases
the error rate, or does something else bad, to programs.
>>


That's why I sent two separate messages, the first a tecnical note on
the use of String. The second was clearly labeled as being *stylistically*
incorrect. Matters of style are definitely less objective. However, I would
not be willing to say they are mere matters of opinion. This particular
case is a rather clear one. The use of the word Grades to refer to a single
grade is definitely a bad idea.

There are attempts in the field of "software physics", to objectively measure
the effect of such stylistic choices, but it is not clear that the rather
soft statistics that come from such studies can conculsively demonstrate
anything. It is very hard to eliminate all other variables from such 
measurements.

But in my opinion, it would be a big mistake to take the attitude that
stylistic points should be ignored unless backed up by such supposed
"evidence". You will often find broad agreement on stylistic issues
based on experience, and it would be a mistake to ignore such
experience (after all Tom Moran notes that he agrees with the point I made,
and I expect that most experienced Ada programmers would agree with us.

It is certainly not easy to always obtain agreement (dig up the recent thread
on type names for an example of this), but there are broad consensus
positions that are worth recognizing, even in the absence of "conclusive"
evidence.

Certainly a position on an issue of style is not a fact! That's the meaning
of the word style in connection with programming languages. It refers to
rules of programming that are NOT mandated by the language!





  reply	other threads:[~1998-04-19  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-19  0:00 Using ARRAYS for grade reporting? tmoran
1998-04-19  0:00 ` Robert Dewar [this message]
1998-04-21  0:00   ` Tom Moran
     [not found] <01bd6b1c$38b6c3c0$0e2915c0@p5120>
1998-04-19  0:00 ` GOTHIC SIN
  -- strict thread matches above, loose matches on Subject: below --
1998-04-18  0:00 Sam
1998-04-19  0:00 ` GOTHIC SIN
1998-04-19  0:00   ` Robert Dewar
1998-04-19  0:00     ` Robert Dewar
replies disabled

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