|
-
May 18th, 2009, 02:52 PM
#1
Thread Starter
Fanatic Member
how much code in an app
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.
-
May 18th, 2009, 07:51 PM
#2
Re: how much code in an app
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
-
May 19th, 2009, 02:24 AM
#3
Re: how much code in an app
Hey,
You might also want to think about something like this:
http://blogs.msdn.com/fxcop/archive/...e-metrics.aspx
Gary
-
May 19th, 2009, 12:04 PM
#4
Thread Starter
Fanatic Member
Re: how much code in an app
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.
Last edited by Webskater; May 19th, 2009 at 12:14 PM.
-
May 20th, 2009, 03:32 AM
#5
Re: how much code in an app
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
-
May 21st, 2009, 02:27 AM
#6
Re: how much code in an app
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
Last edited by brin351; May 21st, 2009 at 02:27 AM.
Reason: i
-
May 21st, 2009, 04:31 AM
#7
Thread Starter
Fanatic Member
Re: how much code in an app
 Originally Posted by gep13
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
Yes, just me.
-
May 21st, 2009, 04:34 AM
#8
Thread Starter
Fanatic Member
Re: how much code in an app
 Originally Posted by brin351
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.
Last edited by Webskater; May 21st, 2009 at 04:38 AM.
-
May 21st, 2009, 04:36 AM
#9
Re: how much code in an app
In which case, I would say that this would be considered as a large project.
Gary
-
May 25th, 2009, 06:50 AM
#10
Re: how much code in an app
Freaking huge. How long did you spend on it? Did you work on it from start to finish?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|