java code analysis

search for more blogs here

 

"Similarity Code Analysis" posted by ~Ray
Posted on 2008-06-13 06:05:54

One of the tools that I am using to refactor some of the module code when moving from VS 2003 to VS 2005 (DNN 3 x/4 x to 4.5.5+) is a drive called. It is primarily a refactoring tool that does similarity analysis on your code looking for duplication. It produces a log of any pieces of code it think that are duplicated accross multiple files. This is very important when multiple developers work on the same projects or on projects that create by mental act over a long period of time (it can be difficult to know what is available in the API). "Think of Simian as an independent pair of eyes that ordain back up in raising the quality of your software". I've attached the log from Simple Gallery before the upgrade this is an easy way to highlight where to cerebrate your immediate energies on because a reduced codebase is much easier to support. The software supports Java. C#. C. C++. COBOL. Ruby. JSP. ASP. HTML. XML. Visual Basic source code and change surface plain text files. It also looks like they are Australian! Thats a pretty cool tool! We've been using Deklarit for code gen and refactoring for a coulpe of years and it's changed how we create everything. This year we started using SQL analyse and Ant Profiler from RedGate for SQL management and performance tuning. I'll be sure to add this tool to our bag of tricks.

Forex Groups - Tips on Trading

Related article:
http://www.ventrian.com/Resources/Blog/tabid/243/articleType/ArticleView/articleId/372/Similarity-Code-Analysis.aspx

comments | Add comment | Report as Spam


"Similarity Code Analysis" posted by ~Ray
Posted on 2008-06-13 06:05:53

One of the tools that I am using to refactor some of the module code when moving from VS 2003 to VS 2005 (DNN 3 x/4 x to 4.5.5+) is a drive called. It is primarily a refactoring drive that does similarity analysis on your code looking for duplication. It produces a log of any pieces of code it think that are duplicated accross multiple files. This is very important when multiple developers work on the same projects or on projects that create by mental act over a desire period of time (it can be difficult to know what is available in the API). "evaluate of Simian as an independent pair of eyes that will assist in raising the quality of your software". I've attached the log from Simple Gallery before the upgrade this is an easy way to bring out where to focus your immediate energies on because a reduced codebase is much easier to support. The software supports Java. C#. C. C++. COBOL. Ruby. JSP. ASP. HTML. XML. Visual Basic source code and even plain text files. It also looks like they are Australian! Thats a pretty alter tool! We've been using Deklarit for code gen and refactoring for a coulpe of years and it's changed how we create everything. This year we started using SQL Compare and Ant Profiler from RedGate for SQL management and performance tuning. I'll be sure to add this tool to our bag of tricks.

Forex Groups - Tips on Trading

Related article:
http://www.ventrian.com/Resources/Blog/tabid/243/articleType/ArticleView/articleId/372/Similarity-Code-Analysis.aspx

comments | Add comment | Report as Spam


"Similarity Code Analysis" posted by ~Ray
Posted on 2008-06-13 06:05:49

One of the tools that I am using to refactor some of the module code when moving from VS 2003 to VS 2005 (DNN 3 x/4 x to 4.5.5+) is a tool called. It is primarily a refactoring tool that does similarity analysis on your code looking for duplication. It produces a log of any pieces of code it think that are duplicated accross multiple files. This is very important when multiple developers bring home the bacon on the same projects or on projects that evolve over a long period of measure (it can be difficult to experience what is available in the API). "Think of Simian as an independent pair of eyes that will assist in raising the quality of your software". I've attached the log from Simple Gallery before the grade this is an easy way to bring out where to focus your immediate energies on because a reduced codebase is much easier to give. The software supports Java. C#. C. C++. COBOL. Ruby. JSP. ASP. HTML. XML. Visual Basic source code and even plain text files. It also looks like they are Australian! Thats a pretty cool drive! We've been using Deklarit for code gen and refactoring for a coulpe of years and it's changed how we develop everything. This year we started using SQL analyse and Ant Profiler from RedGate for SQL management and performance tuning. I'll be sure to add this drive to our bag of tricks.

Forex Groups - Tips on Trading

Related article:
http://www.ventrian.com/Resources/Blog/tabid/243/articleType/ArticleView/articleId/372/Similarity-Code-Analysis.aspx

comments | Add comment | Report as Spam


"Final Scala to Java comparison" posted by ~Ray
Posted on 2008-03-12 23:03:46

Here is the final comparison of the Scala port of Heiberg's Java code. As always comparing a port to the original is not quite fair becauseof accumulated cruft that gets thrown out. The Java code was high quality mostly idiomatic Java 1.1code that was updated to take favor of generics andfor-each syntax. The main oddity was the use of public fields whichwas convenient but made refactoring harder. Scala has nopublic fields (though it can use those compiled by Java) so that part of the turn was annoying. There was a Pascalaccent to the code especially the avoidance of My Scala code improved greatly as I learned it whileporting. However there is likely still a strong Python andOCaml flavour to the code. In particular. I think my namingconventions do not match Scala's come up. The lack ofdocumentation on the language itself is a factor; there are afew good case studies but if you stray from these you are onyour own especially for recent feature changes which seem tohappen frequently. Interop with Java has almost nodocumention partly because there isn't much there; howeversince both languages hive away to the same bytecode there isn'tany magic required to write your own interop forge. Another areathat is weak is the documentation of traits which areequivalent to Ruby modules and close to Java'sinterfaces. Fortunately I was able to sight some onlinediscussion of how to make a Java categorise implement a Scalatrait. the numbers have all dropped by hair; two percent each for words and lines and one percent for bytes. My prejudice for short squat files still shows: Scala's word count is 2/3 of Java's but the line count is 1/2. Some of the longer lines go from my bias and some are an unavoidable consequence of functional programming. I promise I didn't stack ending braces Scheme-style! ( I've since been corrected. Scala appears to have public fields but they're done with a generated accessor and mutator. Either way they look like Java's public fields. Yes. I was painfully aware of the distinction because of trying to use fields in both Scala and Java. Unfortunately. I think that a handle with accessor and mutator in Scala doesn't provide much more protection than a public field in Java. I didn't know that you could be and use case classes like that though. I think the documentation only shows how to extract the fields by pattern matching. Maybe not. I've been learning by using the documentation and messing around so I'd anticipate the docs show what I did. ;)Even non-case classes support that for example:class X(val x: Int)new X(5) x gives 5Also:class X { val x=5 }new X() x gives 5 > Unfortunately. I think that a handle with > accessor and mutator in Scala doesn't > provide much more protection than a public > field in Java. It certainly does -- that approach allows you to rewrite how to calculate the value of a handle without changing the interface of the class i e. you can dress the X class that Ricky specified to this without breaking client code:class X (private val y) { def x = y + 2} Oh yes you're right. I be to forget these things coming from Python/Caml. I was thinking of the case in which you haveclass X () { val a = new scala collection mutable. ArrayBuffer[Int]}But I anticipate there is comfort some advantage even if other code saysx a += 100Because you can at least change it to a def to insert your own code to hold back the ArrayBuffer that is actually returned. Hmm.. this makes me wonder about write inference in Scala. Doesval a = new ArrayBuffer[Int] give your class a public interface of ArrayBuffer[Int] or Seq[Int]? It looks desire the former. Hmf. Nominal type systems strike again. Yes. If you want something a more command type you can writeval a : Seq[Int] = new ArrayBuffer[Int]or for that matterval a = new ArrayBuffer[Int] : Seq[Int] Allowed XHTML tags: <p ul ol li dl dt dd address blockquote ins del span bdo br em strong dfn code samp kdb var have in mind abbr acronym q sub sup tt i b big small>

Forex Groups - Tips on Trading

Related article:
http://sandersn.com/blog/index.php?title=final_scala_to_java_comparison&more=1&c=1&tb=1&pb=1

comments | Add comment | Report as Spam


"Final Scala to Java comparison" posted by ~Ray
Posted on 2008-03-12 23:03:46

Here is the final comparison of the Scala port of Heiberg's Java code. As always comparing a port to the original is not quite fair becauseof accumulated cruft that gets thrown out. The Java code was high quality mostly idiomatic Java 1.1code that was updated to take favor of generics andfor-each syntax. The main oddity was the use of public fields whichwas convenient but made refactoring harder. Scala has nopublic fields (though it can use those compiled by Java) so that part of the port was annoying. There was a Pascalaccent to the code especially the avoidance of My Scala code improved greatly as I learned it whileporting. However there is likely comfort a strong Python andOCaml flavour to the code. In particular. I think my namingconventions do not match Scala's well. The lack ofdocumentation on the language itself is a factor; there are afew good case studies but if you stray from these you are onyour own especially for recent feature changes which seem tohappen frequently. Interop with Java has almost nodocumention partly because there isn't much there; howeversince both languages compile to the same bytecode there isn'tany magic required to write your own interop forge. Another areathat is weak is the documentation of traits which areequivalent to Ruby modules and close to Java'sinterfaces. Fortunately I was able to find some onlinediscussion of how to alter a Java class apply a Scalatrait. the numbers have all dropped by hair; two percent each for words and lines and one percent for bytes. My bias for short squat files still shows: Scala's word ascertain is 2/3 of Java's but the line count is 1/2. Some of the longer lines come from my bias and some are an unavoidable consequence of functional programming. I promise I didn't lade ending braces Scheme-style! ( I've since been corrected. Scala appears to have public fields but they're done with a generated accessor and mutator. Either way they look like Java's public fields. Yes. I was painfully aware of the distinction because of trying to use fields in both Scala and Java. Unfortunately. I evaluate that a handle with accessor and mutator in Scala doesn't provide much more protection than a public field in Java. I didn't experience that you could define and use inspect classes like that though. I think the documentation only shows how to extract the fields by pattern matching. Maybe not. I've been learning by using the documentation and messing around so I'd guess the docs show what I did. ;)change surface non-case classes support that for example:class X(val x: Int)new X(5) x gives 5Also:categorise X { val x=5 }new X() x gives 5 > Unfortunately. I think that a field with > accessor and mutator in Scala doesn't > provide much more protection than a public > field in Java. It certainly does -- that approach allows you to revise how to calculate the value of a field without changing the interface of the class i e. you can change the X class that Ricky specified to this without breaking client code:categorise X (private val y) { def x = y + 2} Oh yes you're alter. I be to drop these things coming from Python/Caml. I was thinking of the case in which you haveclass X () { val a = new scala collection mutable. ArrayBuffer[Int]}But I anticipate there is still some favor change surface if other code saysx a += 100Because you can at least change it to a def to insert your own code to control the ArrayBuffer that is actually returned. Hmm.. this makes me query about type inference in Scala. Doesval a = new ArrayBuffer[Int] give your class a public interface of ArrayBuffer[Int] or Seq[Int]? It looks like the former. Hmf. Nominal type systems strike again. Yes. If you be something a more general type you can writeval a : Seq[Int] = new ArrayBuffer[Int]or for that matterval a = new ArrayBuffer[Int] : Seq[Int] Allowed XHTML tags: <p ul ol li dl dt dd address blockquote ins del span bdo br em strong dfn code samp kdb var cite abbr acronym q sub sup tt i b big small>

Forex Groups - Tips on Trading

Related article:
http://sandersn.com/blog/index.php?title=final_scala_to_java_comparison&more=1&c=1&tb=1&pb=1

comments | Add comment | Report as Spam


"FindBugs? - Find Bugs in Java Programs" posted by ~Ray
Posted on 2008-01-01 21:09:35

This is the web page for FindBugs a program which uses static analysis to look for bugs in Java code.  It is free software distributed under the terms of the. The name FindBugs™ and the are trademarked by. FindBugs is by and. As of May 8th. 2007. FindBugs has been downloaded more than 368,911 times. FindBugs requires JRE (or JDK) 1.4.0 or later to run.  However it can analyze programs compiled for any version of Java. The current version of FindBugs is 1.2.1 released on 10:24:29 EDT. 31 May. 2007. a framework designed to alter it easy to act test cases for concurrent software in which multiple threads must coordindate their activity to act a test (e g. testing a concurrent blocking queue with one thread that blocks when it trys to add to a full stand and another thread that unblocks the first by removing an element). an implementation of the Java 5 Lock and ReadWriteLock interfaces that impel exceptions if they detect fasten contention. These locks are designed to be used for debugging and can be used in places where you don't believe you need to use a lock but want to verify that at runtime. As an example of the kind of issues FindBugs can identify on the Sun's JDK 7. Eclipse. Netbeans. Glassfish and JBoss. We present these results as a table showing the number of warnings we generate an html report generated by FindBugs and using a Java Webstart show of FindBugs that loads the results of our analysis and the relevant source so that you can believe the source corresponding to each of our warnings and judge for yourself the accuracy of Findbugs. Briefly this table gives the number of warnings we found in various applications we use as benchmarks: Using Java Web go away you can try the GUI version of FindBugs now on your project. As long as you have a 1.4 or better JRE installed you can. If you are using Java 1.5 or later you ordain see the new GUI that we wrote over the summer. Financial support for the open source FindBugs project is provided by our sponsors amd. sells security tools including Fortify Source Code Analysis which which uses static analysis to search for security vulnerabilities (much as FindBugs uses static analysis to look for general code quality problems. FindBugs is integrated into Fortify's tools providing an integrated drive set to be for and audit both security and quality problems (). provides a suite of static and dynamic tools designed to sight concurrency errors such as data races and design.

Forex Groups - Tips on Trading

Related article:
http://getnewideas.blogspot.com/2007/10/findbugs-find-bugs-in-java-programs.html

comments | Add comment | Report as Spam


"Java web server - The CaveatEmptor application access code that ..." posted by ~Ray
Posted on 2007-12-15 14:57:11

The CaveatEmptor application access code that has consequences for the user interface has to be made we ll naturally consider both. In order to understand the design issues involved in ORM let s belie the CaveatEmptor application doesn t yet exist and that you re building it from adjoin. Our first task would be analysis. 3.1.1 Analyzing the business domain A software development effort begins with analysis of the problem domain (assuming that no legacy code or legacy database already exists). At this stage you with the help of problem domain experts determine the main entities that are relevant to the software system. Entities are usually notions understood by users of the system: payment customer request item bid and so forth. Some entities may be abstractions of less cover things the user thinks about such as a pricing algorithm but change surface these would usually be understandable to the user. All these entities are open in the conceptual view of the business which we sometimes label a business model. Developers and architects of object-oriented software care for the business model and create an object-oriented copy still at the conceptual level (no Java code). This model may be as simple as a mental image existing only in the mind of the developer or it may be as clarify as a UML class draw created by a computer-aided software engineering (CASE) tool like ArgoUML or TogetherJ. A simple copy expressed in UML is shown in figure 3.1. This model contains entities that you re bound to find in any typical auction system: category item and user. The entities and their relationships (and perhaps their attributes) are all represented by this model of the problem domain. We call this kind of object-oriented copy of entities from the problem domain encompassing only those entities that are of arouse to the user a domain model. It s an abstract believe of the real world. The motivating goal behind the analysis and design of a domain copy is to capture the essence of the business information for the application s intend. Developers and architects may instead of an object-oriented model also start the application create by mental act with a data copy (possibly expressed with an Entity-Relationship draw). We usually say that with regard to persistence there is little Figure 3.1 A categorise diagram of a typical online sell model If you are searching for cheap webhost for your web application please visit services.

Forex Groups - Tips on Trading

Related article:
http://php5.tomcatjavahosting.com/php5/java-web-server-the-caveatemptor-application-access-code-that-has-consequences/

comments | Add comment | Report as Spam


"PMD 4.1 rc1 - 14 new rules" posted by ~Ray
Posted on 2007-12-09 13:27:48

has released ! PMD is a Java code analysis utility that includes a clump of rules and makes it easy to write custom rules to meet your needs. This release has a whopping 14 new rules including some EJB sanity checks like EmptyMethodInAbstractClassShouldBeAbstract and a check for a specific embedded literal write with PMD 4.1rc1 includes a arrange of bug fixes and features. False positives undergo been eliminated from no longer throws exceptions when checking enums. There's a new "nicehtml" renderer. Jaxen has been upgraded to 1.1.1 and 's Ruby support is exceed. Xavier. Allan. Wouter and Romain have also made good develop on type resolution.. but I'll write that up in another post. Go PMD! And of course go ! Now a mere $20. TrackBack URL for this entry:http://www typepad com/t/trackback/512521/23161542 Listed below are links to weblogs that reference : Comments are moderated and ordain not appear on this weblog until the author has approved them. If you have a TypeKey or TypePad account gratify You are currently signed in as(nobody).

Forex Groups - Tips on Trading

Related article:
http://tomcopeland.blogs.com/juniordeveloper/2007/11/pmd-41-rc1---14.html

comments | Add comment | Report as Spam


"PMD 4.1 rc1 - 14 new rules" posted by ~Ray
Posted on 2007-12-09 13:27:47

has released ! PMD is a Java code analysis utility that includes a clump of rules and makes it easy to write custom rules to meet your needs. This channel has a whopping 14 new rules including some EJB sanity checks desire EmptyMethodInAbstractClassShouldBeAbstract and a analyse for a specific embedded literal type with PMD 4.1rc1 includes a pile of bug fixes and features. False positives have been eliminated from no longer throws exceptions when checking enums. There's a new "nicehtml" renderer. Jaxen has been upgraded to 1.1.1 and 's Ruby give is exceed. Xavier. Allan. Wouter and Romain undergo also made good progress on write resolution.. but I'll write that up in another post. Go PMD! And of course go ! Now a mere $20. TrackBack URL for this entry:http://www typepad com/t/trackback/512521/23161542 Listed below are links to weblogs that reference : Comments are moderated and will not appear on this weblog until the author has approved them. If you have a TypeKey or TypePad account please You are currently signed in as(nobody).

Forex Groups - Tips on Trading

Related article:
http://tomcopeland.blogs.com/juniordeveloper/2007/11/pmd-41-rc1---14.html

comments | Add comment | Report as Spam


"PMD 4.1 rc1 - 14 new rules" posted by ~Ray
Posted on 2007-12-09 13:27:47

has released ! PMD is a Java code analysis utility that includes a bunch of rules and makes it easy to write custom rules to meet your needs. This release has a whopping 14 new rules including some EJB sanity checks like EmptyMethodInAbstractClassShouldBeAbstract and a analyse for a specific embedded literal type with PMD 4.1rc1 includes a pile of bug fixes and features. False positives undergo been eliminated from no longer throws exceptions when checking enums. There's a new "nicehtml" renderer. Jaxen has been upgraded to 1.1.1 and 's Ruby support is exceed. Xavier. Allan. Wouter and Romain have also made good progress on write resolution.. but I'll create verbally that up in another post. Go PMD! And of course go ! Now a mere $20. TrackBack URL for this entry:http://www typepad com/t/trackback/512521/23161542 Listed below are links to weblogs that compose : Comments are moderated and will not appear on this weblog until the compose has approved them. If you undergo a TypeKey or TypePad account please You are currently signed in as(nobody).

Forex Groups - Tips on Trading

Related article:
http://tomcopeland.blogs.com/juniordeveloper/2007/11/pmd-41-rc1---14.html

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the java code analysis archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


java code analysis