Author Archives: Todd Huss

Search Engine Friendly URLs in Java

At work I’ve been looking into doing search engine friendly URL’s in Java. For those not in the know, a search engine friendly URL is of the form http://www.domain.com/foo/value1/value2 as opposed to the more typical approach of http://www.domain.com/foo?param1=value1&param2=value2. In my … Continue reading

Posted in Java, Search Engine Optimization | 1 Comment

Two additional Ruby features I wish were in Java

I’ve been tinkering with Ruby a little, mainly so I know what I’m missing since a lot of people really seem to dig it. Ruby has a lot of nice features that I like including mixins, closures, Rails scaffolding, active … Continue reading

Posted in Java, Ruby | Comments Off on Two additional Ruby features I wish were in Java

Firefox web development extensions

My three Firefox plugins of choice that save me a lot of time troubleshooting and working out web development issues are: 1. Web Developer Extension: this one is a must have! 2. User Agent Switcher: I use this one occasionally … Continue reading

Posted in Software Engineering, Technical, Web | Comments Off on Firefox web development extensions

Only crazy people redeploy a webapp after editing a class or JSP

I tell ya, one of the things I love about Ruby, Python, Perl, etc… is that when you make a change to a the code or presentation layer, all you do is hit refresh in your browser. With java and … Continue reading

Posted in Java | Comments Off on Only crazy people redeploy a webapp after editing a class or JSP

You can use XMLUnit without subclassing

I had almost written off XMLUnit because I assumed it required subclassing XMLTestCase and I already have my own JUnit TestCase sublass that I like to use. However, to my delight I discovered they have refactored out an XMLAssert class … Continue reading

Posted in Java | Comments Off on You can use XMLUnit without subclassing

Use and overuse of interfaces

Cedric’s blog entries on Extensibility the interface way, More on interfaces, and Numbered Interfaces got me thinking more about how often to use interfaces, prefixing them with I, adding an Impl to the end, etc… so for my own benefit … Continue reading

Posted in Software Engineering | Comments Off on Use and overuse of interfaces

It's still too soon to upgrade to J2SE 5.0

We're a small enough company that we can make the move to J2SE 5.0 whenever we want but we're holding off right now for 3 main reasons: 1. I'm not interested in being an early adopter unless the gain will … Continue reading

Posted in Java | Comments Off on It's still too soon to upgrade to J2SE 5.0

Tired of checking for null arguments in the method body

One thing I find annoying at times is adding in null checks in a method body to throw an IllegalArgumentException for method arguments that shouldn't ever be null. Most of the time as programmers we skip it and rely on … Continue reading

Posted in Java | Comments Off on Tired of checking for null arguments in the method body

Code coverage from within the IDE followup

Two weeks ago I wrote about code coverage from within Eclipse using djUnit. Since discovering djUnit I've become a huge fan of code coverage in the IDE to improve the TDD process. Since we're going to be using Idea at … Continue reading

Posted in Java | Comments Off on Code coverage from within the IDE followup

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 | Comments Off on Eclipse versus IntelliJ Idea