Category Archives: clean code

Findbugs and Android

Recently I needed to add FindBugs to a android-maven build. This itself is easy enough. The above will analyse the classes as part of the package proecess. This is fine, however, the generated R.java file typically produces class names that … Continue reading

Posted in android, clean code, craftsmanship, maven | Leave a comment

Refactoring: Maintainable Web Services

One of the problems I have with WSDL based web services is the fact that operations are typically generated into one big interface file that must be implemented.   I’ve seen WSDLs with 50 to 70 operations, and this leads … Continue reading

Posted in clean code, craftsmanship, eclipse, refactoring, turmeric | 3 Comments

Eclipse Parent POM and Static Code Analysis

If you are running an open source project at eclipse.org, and are using Maven then we have some good news for you.   A newly deployed Parent POM has been created for your use.  To use the parent pom, you … Continue reading

Posted in clean code, craftsmanship, eclipse, maven, tycho | 5 Comments

Enable Code Coverage for Integration and Unit Tests using Cobertura and Maven

On the turmeric project, we maintain a nightly dashboard.  On the dash board we collect statistics about the project, including code coverage, findbugs analysis and other metrics.   We had been using the Maven EMMA plugin to provide code coverage, … Continue reading

Posted in clean code, craftsmanship, eclipse, maven, turmeric | 6 Comments

Jobs API to the Rescue

I have been working on some refactorings to the Turmeric Eclipse Plugins, and one of the issues I have run across are long running tasks that block the UI thread.  The other issue which is related is not allowing these … Continue reading

Posted in clean code, eclipse, turmeric | 3 Comments

Clean Code irk

Say you have something like the following in your code: The above is pretty basic and is probably used even in your own code. While the above works, a more meaningful API could be something like the following. Yes the … Continue reading

Posted in clean code, craftsmanship, eclipse, java, turmeric | 9 Comments

Checkstyle JavaDoc Compliance Checking

Ever since I read Clean Code, I’ve been more aware of the uncleanliness of the code I write, and more importantly, the code I have to maintain.   Although the book recommends against JavaDocs for variables, I find it necessary … Continue reading

Posted in clean code, craftsmanship, eclipse, turmeric | 2 Comments