realbasic-nug
[Top] [All Lists]

Re: Counting Lines of Code

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Counting Lines of Code
From: James Milne <james dot milne at mac dot com>
Date: Sat, 31 Jul 2004 17:06:24 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <EE4EAFE0-E2B9-11D8-8EF9-000A95A5E76E at freaksw dot com> <3B5B1DC7-E2C5-11D8-A2EC-003065DA9C96 at chipersoft dot com>
On 31 Jul, 2004, at 08:42, Jarvis Badgley wrote:
On Jul 30, 2004, at 11:22 PM, Seth Willits wrote:

Another quick FYI, I wrote this little project to count the lines of code in a project by using the text from the "Export Source" action. It only counts non-blank lines of code and comments. So the lines like "Window1.BtnCount.Action:" and "Sub Action()" aren't count. It's also quite fast - "instant" with the largest projects I have here.

Seth, man, you disappoint me. This code has edges so rough it cuts the skin :-D I just dropped the Run command into the App.OpenDocument event, changed File to item, removed references to the controls, and changed it to spit out the result in a msgbox. Much easier.

I wonder though who has the largest project... anyone care to dance? My largest currently tops under 6 grand at the moment, but I don't really write very large projects. I just write lots of medium-sized ones and never finish most of them. Now if you added up all the code of all the "current" projects I have, then I'd be a contender...

Anyway, Minerva clocks in at a whopping 24,015 lines
ShowTime, my newest and second most complicated, rounds out at 8,078
Simple Image Browser at a meager 4,936

VideoStorm - 232,015 lines

There is also a plugin which supports the RB code, and it weighs in at
around 50,000 lines of C++ code.

:-)

--
Kind Regards,
James Milne

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>