Category Archives: Technical

Eclipse versus IntelliJ Idea

The Java developer I hired to lead the Java side of our port from Perl to Java came from a background of using Idea rather than Eclipse. He liked it so much that we're going to be using Idea as … Continue reading

Posted in Java | Leave a comment

Consistency is more important than "correctness" or using the "best" software

When I started developing software professionally over a decade ago I would readily diverge from company standards at a whim to use a new language, style of coding, favorite editor/IDE, libraries, different build process, etc… Mainly because I wanted to … Continue reading

Posted in Software Engineering | Leave a comment

Fed up with Java, switching to a new language

I’ve had it with Java, too much technology to learn with Unit testing, ORM, IoC, AOP, and SOA, not to mention static typing and waiting to compile. That’s why as of right now I’m a converted .BAT programmer and here’s … Continue reading

Posted in Java, Software Engineering | 21 Comments

Unit testing with coverage reports from within Eclipse

The ever verbose (if you've seen his blog) Pjammy pointed me to this nifty Eclipse plugin called djUnit. Just right click on a JUnit test, select run with djUnit, and it runs the JUnit test with instrumentation to produce a … Continue reading

Posted in Java | Leave a comment

Static typing increases productivity and reduces errors

I’m going to come right out and say that I have a strong preference for static typing in a programming language, especially as it applies to medium and large sized applications with multiple developers. Here’s why: 1. Refactoring: IDE’s make … Continue reading

Posted in Java, Ruby, Software Engineering | Leave a comment

Testing with mock objects

I put together a workshop for the team at work on unit testing and design with mock objects. I opted to show a small sample using both EasyMock and JMock. I'd used JMock before but EasyMock had some nice surprises … Continue reading

Posted in Java | Leave a comment

Java's verbose XML API

It feels like it takes me too many lines of code in Java to create a new XML document, transform it, and then validate the result. At every company I've worked at we've ended up with an XML utility class … Continue reading

Posted in Java | Leave a comment

Java XML data binding with Castor

In working on an XML data feed project at work I needed to generate the feed from our POJO domain model. I was pleasantly surprised to find that Castor XML made this task quite easy. The Marshalling framework will marshall … Continue reading

Posted in Java | Leave a comment

Persistence layer unit testing best practices

I've been doing some searching on best practices for unit testing the persistence layer with DBUnit and I'm interested in people's feedback on my policies or pointers to policies others have created. For example I've been thinking of making our … Continue reading

Posted in Java | Leave a comment

Building one big fat jar file

I've been working on software that generates a very large XML feed for customers. My plan was to have it run by a cron job and regenerate the feed once a week. I wanted my project to produce one file … Continue reading

Posted in Java | 1 Comment