lines-of-code

How can I graph the Lines of Code history for git repo?

Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l To make it a bit clearer, when the tool is run, it would output the lines of code of the ...

What's is a good ratio of Class to Lines of Code for Object-Oriented languages?

What's is a good ratio for the number Classes to Lines of Code for an Object-Oriented language (say C++,C#,Java and their likes)? Many people, including managers, like the traditional LOC (lines of code) metric to measure the complexity of software, while many hard-boiled Object Oriented developers will say LOC is worthless its Class co...

C# penalty for number of lines of code?

Are there limits or performance penalties on the amount of code inside of my home.cs form? I am writing a database application front-end in C# in Visual Studio 2008. The way things are lining up, I am using a tab-page way of changing the info shown to the end users, instead of using new forms. Coming from VBA/MS Access, I remember tha...

Query to list SQL Server stored procedures along with lines of code for each procedure

I want a query that returns a list of all the (user) stored procedures in a database by name, with the number of lines of code for each one. i.e. sp_name lines_of_code -------- ------------- DoStuff1 120 DoStuff2 50 DoStuff3 30 Any ideas how to do this? ...

Simple script to count NLOC?

Do you know a simple script to count NLOCs (netto lines of code). The script should count lines of C Code. It should not count empty lines or lines with just braces. But it doesn't need to be overly exact either. ...

What is a line of code?

I realize there's no definitely "right" answer to this question, but when people talk about lines of code, what do they mean? In C++ for example, do you count blank lines? comments? lines with just an open or close brace? I know some people use LoC as a productivity measure, and I'm wondering if there is a standard convention here. Al...

What is the best way to measure "lines-of-code"?

Duplicate of http://stackoverflow.com/questions/353380/what-is-a-line-of-code Should you count end-lines? Should you base it on delimiters in your language, such as semi-colons? Should you count all non-whitespace characters then divide by the average number of non-whitespace character per line? Maybe the concept of "lines" isn't even ...

How to present your code to potential buyers?

I'll do a demo of my code to slightly non-technical audience, and I need to show them what I've got in my project (about 15K lines of code). I'm trying to convince them that I've spend time on the project and it's in a good state. These guys planning to invest money into this product. Therefore I should convince them that this app worth...

Useless code metric: Yearly revenue per line of code

The world is full of useless code metrics so I thought I would add one of my own I even found someone talking about revenue per line of code. So what is the yearly revenue of the product you're working on divided by lines of code? You can choose any method you like to count LOC, it's not like we're being scientific or anything. If this...

How might I determine the number of lines of code in a C++ project?

Is there a quick way, in Visual Studio, to know how many lines of code exist in a project? ...

Good PHP Metric tools

I have been coding in PHP for a while using Netbeans but it does not provide any tools for obtaining code metrics. I have also used SourceMonitor before but it does not support PHP, same with Code Analyzer. Has anyone used and can recommend any tools for getting code metrics from PHP code? ...

How many lines of code will be saved using JQuery instead of straight JavaScript?

Maybe someone more familiar with the topic can help me to simplify or write the question correctly. We are looking for metrics on JQuery or even other JS Frameworks in comparison with the use of straight javascript. I don't beleive in the lines of code metric, never have, but I cannot think on anything else to measure it. Function Poi...

Is LOC correct parameter for project estimation?

Is LOC correct parameter for project estimation? there are so many scenarios where complexity takes much more time for a single line of code, other than LOC what could be the suggested parameter for project estimation? As peoples are talking about functional point of program does it mean for use case related information? i am trying t...

How many lines of PHP code is too many for one file?

I'm creating a PHP file that does 2 mysql database calls and the rest of the script is if statements for things like file_exists and other simple variables. I have about 2000 lines of code in this file so far. Is it better practice to include a separate file if a statement is true; or simply type the code directly in the if statement i...

Can anybody recommend a program that generates a graph the lines of code count?

I've found a lot of programs and scripts for counting the number of lines of code using Google, but what I'm looking for is something that graphs it in real time. I'm hoping this will motivate myself and other programmers. Any ideas? ...

Subversion. Metrics. Get lines of added/updated code for each file in check-in programmatically

Hi all, I need your advice. In my application I need to get programmatically such metrics for users check-ins as lines of added/updated code for each file in check-in. This app is writed on c# and uses the Subversion as version control system. How can I do it? Offer me your ideas please... Thanks a lot! (: ...

Lines-of-code counting for many C# solutions

I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/ http://www.locmetrics.com/index.html My problem is that I need to recursively scan a folder containing a lot of visual studio...

How do the size standard libraries compare for different languages

Someone was recently raving about how great jQuery was and how it made javascript into a pleasure and also how the whole source code was so small(and one file). I looked it up on www.ohloh.net/ and it said it was about 30,000 lines of javascript, when I tired curl piped to wc it said about 5000 lines(strange discrepancy that, maybe tes...

what is the best program for arranging codes?

i need a program that make my php and html codes tidy.i mean remove unnecessary spaces,tabs,newlines and ... . thanks for helping. ...

10 lines of code per day is the global average!? -- true?

Ok so last year I participated in a high school curriculum contest thing at a college(I currently attend this college). I actually got 1st in it but was still a bit angry I didn't get every single one right. The most baffling of questions on there was How many lines of code does the average programmer write per day? A. 5 B. 10 C. 2...