Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxPro Lines of Code (a.k.a. Not the Beancounters!?!?)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00025005
Message ID:
00025084
Views:
31
>>>The software metrics folks are at it again! They want a Lines of Code count from FoxPro. Any suggestions on an easy way to determine this?
>>>
>>>Loyd
>>
>>Loyd
>>
>>If it's FPD or FPW, use FoxDoc. Ask for the System Report. That will go through and count the lines of code for you. VFP is gonna be a bit of a pain, since FoxDoc no longer exists for it and the 'Documenting Wizard' is a joke as far as I can tell. You can set up a program that will open your forms as a database and then count the lines of code in the Memos. but that can also be a bit of a pain. Last time we had to come up with a count, it was for that happy 'Year 2000' bit.
>
>
>how would you count lines of code in objects that use inheritance and other OO methods?

Personally, I'd do it the same way, and include those counts on systems that used the particular object. It wouldn't take too much to dump those numbers into a .dbf and then reference that table during the count (Form XYZ calls class ABC (120 lines from linecnt.dbf) and then adds 10 more lines).

My next step would be to sit those Lovely people down and explain to them that the concept of "lines of code" is becoming outdated and borderline impossible to do. If that fails, I figure a good, solid closet, stout rope and some ceiling hooks will handle the problem (Tie 'em up, hang 'em up, close and lock the door).
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform