I'm coming to the end of a job and I'd like to work out how big the app I have written is.
Is there any (easy) way of counting the number of lines of code in the application - or perhaps a word count?
Thanks for any help.
Printable View
I'm coming to the end of a job and I'd like to work out how big the app I have written is.
Is there any (easy) way of counting the number of lines of code in the application - or perhaps a word count?
Thanks for any help.
I've wanted the same thing so I googled and got this
http://www.vbdotnetheaven.com/Upload...LineCount.aspx
I have not tried it but the principle is simple enough
Hey,
You might also want to think about something like this:
http://blogs.msdn.com/fxcop/archive/...e-metrics.aspx
Gary
Hi, and thanks for the replies.
I haven't run that code yet to do the line count - will do when I get a chance.
In the meantime I have some crude stats.
I have written four applications that all use the same database. One of the applications is pretty small - it is just an app for adminstrators to set permissions for users.
Rough numbers.
The database has 246 tables and 834 stored procedures. If you add in views and user defined functions - total number of objects is about 1100.
The stored procedures contain 42,500 lines of code.
If I script the database out - it would take 52,100 lines of code to recreate it.
Each application has a data access class that is basically a layer to handle all the data access to the database.
So, there are 4 of these, one in each application.
One contains 10,000 lines of code. Another 6,000. Another 5,000. Another 1,000
Between the four applications there are just over 500 pages. (Half are .aspx and half are .aspx.cs. A lot of them are pretty complex - some of the more complex .aspx.cs pages have between 1,000 and 2,000 lines of code. I'm approximating here but I reckon there is maybe 125,000 lines of code in the .aspx.cs pages.
On the .aspx pages - probably adds up to 100,000 lines of code.
And there's the usual sundry javascript includes and css etc.
How would you think of that lot? Big application? Small application? Medium application?
There are 3 environments to maintain too - development, user testing and Live.
I've been working on it for 21 months.
Hey,
Whether or not an application is big, medium or small is definitely relative to the company and developers working on it, and you will more than likely get varying answers to this question.
For instance, an application could be quite small, but you as the developer was responsible for everything in that application, where as the Application might be huge, but as a developer you only worked on a small portion of the overall code.
From what you have posted, am I right in thinking that you have been the sole developer on this project, covering all the different aspects, i.e. UI, BLL, DAL and Database Procedures?
Gary
Sounds big to me. If I had to work over a year to get an app ready to release it's bigger than small or medium .... to me any way, or maybe I just work really fast:)
Yes, that's what I am trying to get a handle on ... I've pretty much always worked on my own ... how fast am I? I've no idea.
The project is essentially 4 separate - but related - applications. They have been rolled out consecutively.
And, for what it's worth, it's pretty complex too - not the standard - customer, product, order stuff.
In which case, I would say that this would be considered as a large project.
Gary
Freaking huge. How long did you spend on it? Did you work on it from start to finish?