Lines of code
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
Bart wrote:
how many were generated by a tool?
There is a line I will not cross...
------------------------------------ In science, 'fact' can only mean 'confirmed to such a degree that it would be perverse to withhold provisional assent.' I suppose that apples might start to rise tomorrow, but the possibility does not merit equal time in physics classrooms. Stephen J Gould
-
Bart wrote:
how many were generated by a tool?
There is a line I will not cross...
------------------------------------ In science, 'fact' can only mean 'confirmed to such a degree that it would be perverse to withhold provisional assent.' I suppose that apples might start to rise tomorrow, but the possibility does not merit equal time in physics classrooms. Stephen J Gould
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
The lines generated by a tool are generally boilerplate, VS does not write code in any meaningful way, it just generates standard lines, like event handlers, when you tell it to. so, you wrote it all.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
my response to him "bugger off Maunder, i'm busy" ;) Bryce
MCAD --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids books :The Snot Goblin, and Book 2 - the Snotgoblin and Fluff
-
The lines generated by a tool are generally boilerplate, VS does not write code in any meaningful way, it just generates standard lines, like event handlers, when you tell it to. so, you wrote it all.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
The lines generated by a tool are generally boilerplate, VS does not write code in any meaningful way, it just generates standard lines, like event handlers, when you tell it to. so, you wrote it all.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
I very rarely write code. Most of it is "generated" by Intellisense. Steps:
- Type "using System.T"
- Select "System.Threading".
- Type a semicolon.
Generated Code:
using System.Threading;
;P
Visual Studio is an excellent GUIIDE.
-
I very rarely write code. Most of it is "generated" by Intellisense. Steps:
- Type "using System.T"
- Select "System.Threading".
- Type a semicolon.
Generated Code:
using System.Threading;
;P
Visual Studio is an excellent GUIIDE.
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
Bart wrote:
How many did you write and how many were generated by a tool?
Ask him when he stopped beating his wife. Maybe he'll get the point. Marc
I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
I remember caring about that waaaay back in the day. These days it's pretty irrelevant with all the template generated lines etc. The app I'm working on today has over 20 projects in the solution. Lines of code must be zillions by now. ;)
"Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
What's a line of code? I can break a statement onto many lines, and I can put many statements on one line. A C/C++/C# source file may contain no linefeeds at all (only pre-processor directives require them). Counting statements might make some sense, but even that is fairly pointless. Just say "42".
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
Why should you even care, you will be responsible for it no matter where it comes from. What if you wrote the code generator, does that get special status. Talk about stupid questions! And no I have no idea and could care even less.
-
Why should you even care, you will be responsible for it no matter where it comes from. What if you wrote the code generator, does that get special status. Talk about stupid questions! And no I have no idea and could care even less.
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
-
Use a regular expression file search tool to count the number of semicolons in your project, and exclude the files that are designer created. First, copy all the files to a temp directory. Then search that directory for all the designer files; delete those files. Searching for the number of semicolons should then give you a pretty accurate estimate of number of lines. If you want actual lines rather than lines of code, you could use the same regular expression approach to count the number of line endings. Actually, that approach wouldn't work with me. Most of my code is XAML (hand typed, not designer generated), so there are no semicolons to count. An alternative approach would be to decide how many characters an average line takes up (say, 80), then divide the file size by that number to get the approximate number of lines. Might have to use half that number if the text uses one of those "double wide" character encodings.
Visual Studio is an excellent GUIIDE.
-
A friend watched me writing code for a project asked: So, how many lines of code is that? How many did you write and how many were generated by a tool? I didnt know..... How can I find out?
bart
Software metrics tools for C/C++ [^]
Steve _________________ I C(++) therefore I am
-
Hold said horse. He was only a mate and just asked out of curiosity. He was wondering how I understood all that foreign tongue stuff. He is probably a bit like DD's boss. (No, he didnt touch my PC)
bart
fair enough - you do have to be careful about what you mate gets to touch *grin* Bryce
MCAD --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids books :The Snot Goblin, and Book 2 - the Snotgoblin and Fluff
-
Hold said horse. He was only a mate and just asked out of curiosity. He was wondering how I understood all that foreign tongue stuff. He is probably a bit like DD's boss. (No, he didnt touch my PC)
bart
In which case he owes you a beer while you describe what you do, I'm betting you can drag it out for a couple of beer but you are going to have to watch out for that glazed look that come into their eyes.