Results 1 to 10 of 10

Thread: how much code in an app

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    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.

  2. #2
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    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

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    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.

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  6. #6
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    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

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: how much code in an app

    Quote Originally Posted by gep13 View Post
    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.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: how much code in an app

    Quote Originally Posted by brin351 View Post
    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.

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: how much code in an app

    In which case, I would say that this would be considered as a large project.

    Gary

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width