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.
User Profile
Collapse
-
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?Leave a 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...Leave a comment:
-
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.Leave a comment:
-
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?Leave a comment:
-
-
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...Leave a comment:
-
Ok. Could you please take a look at this code, just 5% of one of the configuration files, from a game program - freecol. What is the code for?
Code:BODY{font:x-small 'Verdana';margin-right:1.5em} .c{cursor:hand} .b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none} .e{margin-left:1em;text-indent:-1em;margin-right:1em} .k{margin-left:1em;text-indent:-1em;margin-right:1em} .t{color:#990000} .xt{color:#990099} .ns{color:red}
Leave a comment:
-
counting lines of code
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?... -
Bugs in configuration files?
Good day! I wanna count lines of code of a game program that's completely written in java, and there are two configuration files (XML) in it too. Actually I wanna check defect density of this program. Questions:
1. What are the config files for? I don't really know much about config files in a program. Please brief a general intro of it to me.
2. Any possibilities of config bugs?
3. Do I have to count lines of code of this config... -
Can I say that syntax error/compile-time error & runtime error - are under Algorithm or maybe Function error? Hurmmm........Leave a comment:
-
Oh I see. How about Algorithm error? Don't you think that Assignment error is also under Algorithm error?
One more question - help me to understand these 2 category of programmings:
" High-level" and "low-level" are also used relatively; a Java programmer might consider C to be a comparatively low-level language. Whereas a C programmer might consider machine code to be of a lower level "- wiki....Leave a comment:
-
Errors
Good Day all!
I am not clear about few errors occur in java programs. Hope anyone can help me to understand them.
1. Checking error - I understand this error involves with incorrect initialization values which causes wrong iteration/loop. Am I right and are there any examples of checking?
2. Assignment error - I am confused with Assignment and Checking errors, which I think this error involves with wrong... -
Allow me to ask 2 questions about software development.
I read an article about a product is using 'Reused from Library'. What does it mean by 'Reused from Library'?
And one more is Ported software. What does it mean by Ported?
I would be grateful if someone can share an example of them. Thanks a bunch guys......
Shana07Leave a comment:
-
I'm sorry.I think I almost get there..I use this
Code:String[] lines = readLines (m + "Input.txt", m); //read all lines from your file printWriter = new PrintWriter(new BufferedWriter(new FileWriter(m +"SORTED.txt", true))); Arrays.sort (lines); for( i = 0; i < lines.length; i++) { printWriter.println("lines["+(i+1) +"] = "+lines[i]);
Leave a comment:
-
The article is about sorting name, please assist me on sorting integer ...
What do you think about the buble sort method as above ?...Leave a comment:
-
Jos, assist me on array syntax..what's wrong with my syntax here..
I will study about the article..thank you very much
Code:for(int i = 0; i < lines.length; i++) { String[] theline = lines[i].split(" "); String[] testcase = theline[i]; String[] eod = theline[i]; printWriter.println( (i+1) + " : " + lines[i]);
Leave a comment:
-
sort number in ascending
Phew, I have problem..How to sort number in my files..I have these in my input files...: I need to sort the line in array [1] from 12, 64, 8, 128 etc.
3 12
4 64
7 8
10 128
...
I just wanna sort and number out them :
1 8
2 12
3 64
....
And my work...(I have tried to use bubbleSort() that I copied from people's ..)
Code:public int[] bubbleSort(int array[])
-
Yes, you are really there! It works great. Thank you very much prometheuzz
Just this line makes my program different...
Code:List<String> lines = new ArrayList<String>();
The next mission is how to compare them....
again please advise me.......Leave a comment:
-
I am really clueless about type error...please.
incompatible types
found : java.lang.Objec t[]
required: java.lang.Strin g[]
return lines.toArray(n ew String[lines.size()]);
^
Code:return lines.toArray(new String[lines.size()]); // return (String[]) lines.toArray();
Leave a comment:
No activity results to display
Show More
Leave a comment: