I have to calculate the size of my product built using PB6.5 in terms of
KLOCs. There are about 40 pbls each of about 1MB large. (Lost of
objects...I dont have the exact count with me)...
Is there any easy method or tool available to calculate the LOC. The
long and direct way is to export the objects and count OR count the
lines manually for each event, functions etc....Now this is a very very
tedious method.
Any suggestions on how to go about this...any tools...methods etc....
Appreciate your help folks....
Asim
Use the LibraryDirectory () function to get a complete list of all objects.
Then loop each object with FindClassDefinition (). And use the
FindMatchingFunction to get the script. Then you can use the 'Source' to
count the lines.
Asim Malik <mali...@geodc.patni.com> wrote in message
news:39A4B102...@geodc.patni.com...
"Asim Malik" <zsa...@pcsbom.patni.com> wrote in message
news:39A4B2B2...@pcsbom.patni.com...
Charlie Crook wrote in message ...
J. Lon Thompson
Powerdoc Software, Inc.
In article <39A4B102...@geodc.patni.com>,
mali...@geodc.patni.com wrote:
> Hi,
>
> I have to calculate the size of my product built using PB6.5 in terms
of
> KLOCs. There are about 40 pbls each of about 1MB large. (Lost of
> objects...I dont have the exact count with me)...
>
> Is there any easy method or tool available to calculate the LOC. The
> long and direct way is to export the objects and count OR count the
> lines manually for each event, functions etc....Now this is a very
very
> tedious method.
>
> Any suggestions on how to go about this...any tools...methods etc....
>
> Appreciate your help folks....
> Asim
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
And I'm likely to agree with other viewpoints on how valuable lines of
code actually is. I've seen CloseQuery scripts copied to all 80
windows in the system, with evolutions (bug fixes) over time that were
never copied back to all the windows. Personally, I'd count this
volume *against* the team, which should have just put in an ancestor
and put the code in there (which is what I ended up having to do).
Programmers shouldn't get extra points for moronic coding. I just
threw it into PBL Peeper because it was about 5 lines of code with PFC
and other stuff I had already written. <g>
Good luck,
Terry [TeamSybase] and Sequel the techno-kitten
On Thu, 24 Aug 2000 10:59:22 +0530, Asim Malik
<zsa...@pcsbom.patni.com> wrote:
>I have to calculate the size of my product built using PB6.5 in terms of
>KLOCs. There are about 40 pbls each of about 1MB large. (Lost of
>objects...I dont have the exact count with me)...
>
>Is there any easy method or tool available to calculate the LOC. The
>long and direct way is to export the objects and count OR count the
>lines manually for each event, functions etc....Now this is a very very
>tedious method.
>
>Any suggestions on how to go about this...any tools...methods etc....
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a PowerBuilder Developer's Toolkit,
winner of PowerTimes 1999 "Little Helper of the Year"
Thanks a lot. I really apprciate your help and I agree with you regarding
that duplication of code.....guys have to get smart while coding.....
thanks again. appreciate.
-Atul Kane
CPD & Author of RealPower
http://www.homestead.com/atulkane
Asim Malik wrote:
> Hi,
>
> I have to calculate the size of my product built using PB6.5 in terms of
> KLOCs. There are about 40 pbls each of about 1MB large. (Lost of
> objects...I dont have the exact count with me)...
>
> Is there any easy method or tool available to calculate the LOC. The
> long and direct way is to export the objects and count OR count the
> lines manually for each event, functions etc....Now this is a very very
> tedious method.
>
> Any suggestions on how to go about this...any tools...methods etc....
>