comp.lang.ada
 help / color / mirror / Atom feed
From: ncohen@watson.ibm.com (Norman H. Cohen)
Subject: Re: Lines of documentation per LOC
Date: 27 Oct 1994 14:55:57 GMT
Date: 1994-10-27T14:55:57+00:00	[thread overview]
Message-ID: <38of1t$mo6@watnews1.watson.ibm.com> (raw)
In-Reply-To: 1994Oct26.094543.24213@sei.cmu.edu

In article <1994Oct26.094543.24213@sei.cmu.edu>, lpb@sei.cmu.edu (Loic
Briand) writes: 

|>                        The problem is that when you have a client who ask for
|> 10 lines of doc par LOC and you have budgeted 0.1 (based on the expected
|> complexity of your code), you have to prove your point.

What idiocy!  This is a fine incentive to start writing Ada code like

for I in L'Range(1)loop for J in R'Range(2)loop Res(I,J):=0.0; for K in
L'Range(2)loop Res(I,J):=Res(I,J)+L(I,K)*R(K,J);end loop;end loop;end loop;

instead of

   for I in Left'Range(1) loop
      for J in Right'Range(2) loop
         Result(I, J) := 0.0;
         for K in Left'Range(2) loop
            Result(I, J) :=  Result(I, J) + Left(I, K) * Right(K, J);
         end loop;
      end loop;
   end loop;

-- (unless,
-- of
-- course,
-- you
-- write
-- your
-- comments
-- like
-- this).

--
Norman H. Cohen    ncohen@watson.ibm.com



  parent reply	other threads:[~1994-10-27 14:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-25 21:00 Lines of documentation per LOC Loic Briand
1994-10-25 19:00 ` Robert I. Eachus
1994-10-26 13:45   ` Loic Briand
1994-10-26 19:22     ` Robert Firth
1994-10-26 22:30     ` Robert Dewar
1994-10-27 14:55     ` Norman H. Cohen [this message]
1994-10-29 10:42     ` mat
1994-10-29 10:32   ` mat
  -- strict thread matches above, loose matches on Subject: below --
1994-12-07 12:57 Loic Briand
replies disabled

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