User Profile

Collapse

Profile Sidebar

Collapse
shana07
shana07
Last Activity: Apr 6 '09, 05:05 AM
Joined: Jan 31 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shana07
    replied to counting lines of code
    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.
    See more | Go to post

    Leave a comment:


  • shana07
    replied to counting lines of code
    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?
    See more | Go to post

    Leave a comment:


  • shana07
    replied to counting lines of code
    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...
    See more | Go to post

    Leave a comment:


  • shana07
    replied to counting lines of code
    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.
    See more | Go to post

    Leave a comment:


  • shana07
    replied to counting lines of code
    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?
    See more | Go to post

    Leave a comment:


  • shana07
    replied to Bugs in configuration files?
    in Java
    Noted with many thanks....
    See more | Go to post

    Leave a comment:


  • shana07
    replied to counting lines of code
    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...
    See more | Go to post

    Leave a comment:


  • shana07
    replied to Bugs in configuration files?
    in Java
    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}
    ...
    See more | Go to post

    Leave a comment:


  • shana07
    started a topic counting lines of code

    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?...
    See more | Go to post

  • shana07
    started a topic Bugs in configuration files?
    in Java

    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...
    See more | Go to post

  • shana07
    replied to Errors
    in Java
    Can I say that syntax error/compile-time error & runtime error - are under Algorithm or maybe Function error? Hurmmm........
    See more | Go to post

    Leave a comment:


  • shana07
    replied to Errors
    in Java
    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....
    See more | Go to post

    Leave a comment:


  • shana07
    started a topic Errors
    in Java

    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...
    See more | Go to post

  • 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......

    Shana07
    See more | Go to post
    Last edited by shana07; Dec 6 '07, 08:07 AM. Reason: adding one more point

    Leave a comment:


  • shana07
    replied to sort number in ascending
    in Java
    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]);
    ...
    See more | Go to post

    Leave a comment:


  • shana07
    replied to sort number in ascending
    in Java
    The article is about sorting name, please assist me on sorting integer ...
    What do you think about the buble sort method as above ?...
    See more | Go to post

    Leave a comment:


  • shana07
    replied to sort number in ascending
    in Java
    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]);
    ...
    See more | Go to post

    Leave a comment:


  • shana07
    started a topic sort number in ascending
    in Java

    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[])
    ...
    See more | Go to post

  • shana07
    replied to readLine()
    in Java
    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>();
    I can't think that complicated....
    The next mission is how to compare them....
    again please advise me.......
    See more | Go to post

    Leave a comment:


  • shana07
    replied to readLine()
    in Java
    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();
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...