[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Source code statistics ...

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 23 Jul 2009 12:37:46 -0400

On Thu, Jul 23, 2009 at 12:25, Radomir
Zoltowski<radomir.zoltowski_at_s3group.com> wrote:
> Andy Levy wrote:
>
> On Thu, Jul 23, 2009 at 12:01, Parrish, Ken<KParrish_at_gomez.com> wrote:
>
>
> I haveĀ  been asked by my management to calculate the total number of lines
> of code which were added or modified between two revisions in our source
> code.
>
>
>
> Is there a way, using Subversion commands, to calculate such statistics?
>
>
> Not purely with Subversion, you 'll need to script it. There are
> several scripts/packages that do this. On a simplistic level, you can
> either use the output of svn diff or export both revisions and run wc
> -l on each, then compare. But that doesn't account for binary files,
> entirely new files, files deleted, etc. And even a minor refactoring
> can skew those numbers heavily.
>
> But it's a losing proposition. Tracking development by statistics like
> this is a sign that management doesn't understand that building
> software is not like building a skyscraper. I had a PM (Princeton or
> Harvard MBA, no less) once who wanted me to estimate how many LOC my
> application would ultimately be, and then gauged my progress by asking
> for a LOC count weekly.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374879
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_subversion.tigris.org].
>
>
> I just wanted to ask, if this is a measure of quality or what? It is
> actually quite contrary to me. Anyway, I would rather spend my energy on
> developing a correct measurement processes against (hopefully) defined
> requirements, than blindly follow requests like this. Just be alert not to
> become a gopher...

That's pretty much what I told the PM in my example. Several times
over. I told him I judge progress on the number of
features/requirements which have been completed successfully, not how
many times I hit the Enter key. Even explained that sometimes I'll
remove lines along the way because I found ways to re-use stuff I'd
written before. Didn't matter. He liked raw LOC numbers. My guess is
he was comparing notes with some of his friends about their
programmers.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374901

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-23 18:46:50 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.