From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mlb.semi.har ris.com!dw3g!smccoy@ucbvax.Berkeley.EDU (Scott McCoy)
Subject: Re: Assy/Ada SLOC ratio;What's an Ada SLOC?
Date: 15 Oct 92 13:15:11 GMT [thread overview]
Message-ID: <1992Oct15.131511.12936@mlb.semi.harris.com> (raw)
Before I start: my apologies if this a repeat of an earlier
post of mine. My newsreader crapped out in the middle of
my previous write-up, and I can't get any indication that
the original post made it. So, I'll repeat myself...:-)
In article <1992Oct14.121432.10919@aplcen.apl.jhu.edu>, dlc@ddsdx2.jhuapl.edu (
Dave Collard x7468) writes:
[...source code example deleted...]
|>
|> IMHO, any method that depends on semicolons for counting
|> lines of code is pretty useless.
|>
You've hit on a key point here -- what do you expect your SLOC
metric to measure? Size? Complexity? The answer you give
can effect the method used to count SLOC.
I haven't seen a consensus in the Ada community on this topic,
and I've been developing/managing Ada projects since 1985. So
there is probably not one answer to 'what is an Ada SLOC'...
One approach I used in the past is 'every non-blank, non-comment
line is a LOC'. I fully recognize that this method is highly
dependent upong the programming and formating style. For example,
a module written using named parameters, and a formatter which
breaks each parameter onto a separate line would have a higher
count then just using positional parameters. Also, change your
margins for your formatter, and the count changes again.
I point these out to show there are limitations to any method
of counting SLOC.
--
Scott McCoy Harris ISD Opinions expressed are my own.
Staff Eng - SW Internet: smccoy@dw3g.ess.harris.com
next reply other threads:[~1992-10-15 13:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-10-15 13:15 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mlb.semi.har [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-10-17 13:41 Assy/Ada SLOC ratio;What's an Ada SLOC? Xmiester
1992-10-16 13:17 Dennis Doubleday
1992-10-15 21:33 Bob Kitzberger
1992-10-15 12:21 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mlb.semi.har
1992-10-14 16:55 Mark A Biggar
1992-10-14 12:14 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!aplcen.apl.j
1992-10-09 21:30 Paul Byrley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox