|
Visual Studio - Determining Lines No Of Lines of code in a project - is this possible in VS 2008?
Started by AJM on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use Project Line Counters add-ins available from from Code Project -
Line Counter - Writing a Visual Studio 2005 & 2008 Add-In Project Line Counter Add-In v2.10 for VS.NET and VC6 there is no direct way from vs2008....
|
|
Looking for a tool to calculate the # of lines of code in an asp.net (vb.net) application.
The tricky part is that it needs to figure out the inline code in aspx files also.
So it will be lines of code in vb files (minus comments) plus the inline code...
Started by Abdu on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If it does not work, let me know so that I can update my count is divided... .
Worth giving it a try.
The line if it counts inline code.
The SLOC Report The SLOC Report tool provides an easy way to count the lines of code.
|
|
Is there an easy way to count the lines of code you have written for your django project?
Edit: The shell stuff is cool, but how about on Windows?
Started by Joe on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It can show you lines counts for actual code, comments, blank lines, etc..
But it supports Python.
|
Ask your Facebook Friends
|
Does line wrapping help with code readability?
Is there a generally accepted etiquette for using line continuations?
Why use this:
SomeMethod(int someInt, Object someObject, String someString, bool someBool) { ... }
Instead of this:
SomeMethod(int someInt...
Started by Kevin on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The StyleCop rules....
If you're asking, in terms of style, whether it's a good idea to break a line into multiple lines, that's debatable.
Line continuations are not used in C#, since an explicit line terminator ( ; ) is required.
|
|
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 ...
Started by Motti on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Note that this....
I'll, per year.
That makes some £10 per line of code saving plugin tells me that this project has some 20k lines of code (excluding comments I assume).
Assume it's saving £200k a year as a reasonable minimum .
|
|
#include <iostream> #include <string> #include <fstream> using namespace std ; string strWord( int index , string line) { int count = 0; string word; for ( int i = 0 ; i < line.length(); i++) { if ( line[i] == ' ' ) { if ( line [i...
Started by H4cKL0rD on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I did not read very carefully, but it looks like it prints out the second word of the line? For example, if you load this code into Microsoft Visual C++, you can step through the program one statement piece of code does at the detail....
|
|
Sometimes you have to write in your source long lines, that are better to break. How do you indent the stuff ceated by this.
You can indent it the same:
very long statement; other statement;
That makes it harder to differentiate from the following code...
Started by Mnementh on
, 16 posts
by 16 people.
Answer Snippets (Read the full thread at stackoverflow):
In my opinion, a line width of 78 or 80 characters is useful since test 3)) { code....
I've asked a similar question in the past:
Where to wrap a line of code is consistent throughout your code base.
Languages, which is OK.
|
|
I recently discovered that our company has a set of coding guidelines (hidden away in a document management system where no one can find it). It generally seems pretty sensible, and keeps away from the usual religious wars about where to put '{'s and ...
Started by Ned on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
Well, since making....
On the other hand, it does make diffs harder to read .
On the one hand, lining up like this can make repetitive code much easier to read.
I'm torn.
You still have to change every line but it's fast and simple.
|
|
So I have made a web page of HTML, Inline CSS and JS. Since this page will be produced through JS function
opened.document.write();
I would like to put all the web page code into one line that can be taken in one of the previously mention function instead...
Started by MAK on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Elaborate?
You could use an online text editor with regex , paste your code in and fix up some regex.
|
|
I'm not exactly sure how to word this but I'll try.
Suppose you have some settings in some piece of your program where your 80% sure you won't ever have to modify again. How do you know where to draw the line on changeable code? You know that taking the...
Started by danmine on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Two points:
All constants should be generic, ie, don't ever hard-code magic numbers without putting it into a descriptive constant....
100% ? A constant may do.
80% ? Not nearly good enough to hard code, put it into the config file.
Bullets.
|