good day! I wanna check defect density of an open source tool. This tool can be used for creating a continuous build process. Most of the software is written in java, with a number of additional files written in html, css, html, javascript, xslt, jsp. This tool also has a web interface for users to view their work.
My questions are:
1. Are there possibilities of getting bugs in those additional files such as html, css etc?
2. Do I have to count lines of code of those files?
please feel free to give any comments. thank you.
11 2356
When you say "Bugs" are you referring to rendering issues or issues that might hinder the way the tool you are testing works / functions?
I am not clear as to why you would need to count lines of code for HTML/CSS.
Would you please explain your questions better.
--Kevin
I was thinking that, bugs may contain in html/css files as well. Let us say that users report some issues/bugs, and in order to fix it, developers have to do changes to the java code and maybe to the javascript, html, css etc. That's why I was confused, do i have to count lines of code of the java files only or all files too? Don't you think so....
Which files should I take to count lines of code of an open source tool, let's say from the SourceForge.net (usually the distribution comes with xml config files, css files, etc). Thank you.
For more a general answer, I would say that if you know which line of code is causing issues then yes count the lines to get to the proper line to make the fix. If you only know that the HTML or CSS file is not rendering the way you expected, then I would not see where counting the lines of code would matter.
Moving to the Misc forum is this is not an HTML/CSS question, but rather more of a general question.
--Kevin
Alright. In this case, I was assuming developers have to change or add more lines to the html/css files too although not all the time.
Sorry, I'm unsure about the rendering thing that you have mentioned, in html and css, are they for visualization purposes only?
The HTML is the markup for the structure of the page. The CSS is for the presentation / visualization of the page. Rendering would be more of how the browser displays the page.
--Kevin
Got it..so what do you think the best either counting or not the lines of code of the html and css files of a java tool that provides a web interface, for measuring defect density. feel free to comment.
Sorry one more thing, how about 'build.xml' file in each distribution package of an open source tool? Do you think should be counted or not...
As far as I know the build.xml is a file for a tool called ant, which builds the java project. So if you want to count the lines of code needed to create the project, yes, count those lines too.
On the other hand, counting the lines of a project isn't very informative really - for example the code snippets - public int add(int a, int b)
-
{
-
int c;
-
c = a;
-
c += b;
-
return c;
-
}
and - public int add(int a, int b) { return a+b; }
have pretty much the same functionality, but the line count is quite different. So you can do it of course, but it doesn't necessarily make sense. You'll have to decide for yourself.
Greetings,
Nepomuk
I agree. LOC is not very informative when there are different styles of coding
I was about not to count LOC of build.xml, because my task here is related to defect density, what do you think? can the build.xml contain bugs?
I'm no expert on ant, but I'd guess that theoretically a build.xml can contain errors just as well as any other file. In most cases however such errors should be detected when building the project - I would think. So, better count it as well, if you continue counting.
Greetings,
Nepomuk
You're right - 'errors should be detected when building the project'. So when measuring on delivered defect density, I think build.xml should not be counted, as most of the time it will work.
Thanks for the useful replies, all.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: jabailo |
last post by:
Which would be faster for counting lines in a StreamReader:
(a) iterate through a file using .ReadLine() and adding to a counter, i++
(b) doing a .ReadToEnd() and then using an IndexOf() method...
|
by: Alex Vinokur |
last post by:
Is there any tool to count C-program lines except comments?
Thanks,
=====================================
Alex Vinokur
mailto:alexvn@connect.to
http://mathforum.org/library/view/10978.html...
|
by: Anders K. Jacobsen [DK] |
last post by:
Hi
We have a rather large asp.net project with serveral utility projects
(written in C#). Is there at tool out there which can give an estimate of
the total amount of code lines all projects...
|
by: j |
last post by:
Hi,
I've been trying to do line/character counts on documents that are
being uploaded. As well as the "counting" I also have to remove
certain sections from the file.
So, firstly I was working...
|
by: Peter |
last post by:
Currently I'm using the method below, is there someting more efficient?:
Imports System.IO
Public Class CountLine
Public Shared Function CountLines(ByVal FileName As String) As Integer
Dim fs...
|
by: andy.lee23 |
last post by:
hi im having trouble counting lines in a text file, i have the
following code
int node1, node2, i;
char name;
float value;
ifstream fin;
fin.open(OpenDialog1->FileName.c_str());
i=1;
|
by: cj |
last post by:
I'm writing a TCP/IP server app that will have many simultaneous
connections. The main thread listens for new connections and starts a
thread to handle each requested connection. These are short...
|
by: Dan |
last post by:
Is this discouraged?:
for line in open(filename):
<do something with line>
That is, should I do this instead?:
fileptr = open(filename)
for line in fileptr:
<do something with line>
|
by: peraklo |
last post by:
Hello,
there is another problem i am facing. i have a text file which is
about 15000 lines big. i have to cut the last 27 lines from that file
and create a new text file that contans those 27...
|
by: powerej |
last post by:
I have gotten the part of counting how many words are in the string, but the vowels just seem alien to me. Ive tried so many things but never close to a correct answer. I know I need to use...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |