« July 2004 | Main | September 2004 »

August 2004 Archives

August 8, 2004

Why it's important to be able to unit test outside the container

Daniel Steinberg has a note on Java.Net about testing EJBs out of the container, and wonders why people make a fuss about it. There's a simple reason: speed.

Continue reading "Why it's important to be able to unit test outside the container" »

August 13, 2004

Python Paradox makes sense...

Paul Graham wrote about The Python Paradox. Unlike his earlier talk, this one actually had a good point.

Continue reading "Python Paradox makes sense..." »

August 14, 2004

Unit testing privates, and other unsavoury topics

Brian Duff gives a good example of a technique to get around visibility problems when unit testing. Believe it or not, this can be a good idea (and this is a strong TDD advocate saying this).

Continue reading "Unit testing privates, and other unsavoury topics" »

August 19, 2004

Don't Overcomplicate Things

A gentle reminder to myself: don't make things more complicated than they need to be.

Continue reading "Don't Overcomplicate Things" »

August 23, 2004

Recognition gap

Esther Derby describes a notice from Gallup about the lack of recognition and appreciation in modern companies.

Continue reading "Recognition gap" »

August 25, 2004

"Pass-the-parcel" exceptions.

Hani makes a surprisingly unbilish point about wrapped exceptions. Wrapping already wrapped exceptions isn't the best idea in the world.

This technique reminds me of the children's game of "Pass the Parcel", where you put multiple layers of wrapping on a gift, and the children never know when they will reach the last one.

I'm as guilty of this as the next person, but I think in future I will modify the constructors of my wrapping exceptions so that if a cause already exists, it uses that as the cause, not the one supplied...

(FWIW, I'm not against wrapping exceptions; what is an ObjectNotFound at one layer is a ConfigurationException at another, and should be reflected as such).

This may, of course, just be a stupid idea, but it's worth exploring.

August 26, 2004

Unit testing email

The JavaMail API is a nice, simple, and effective API. But it's got one problem: it's a bugger to unit test. This is mostly because (unlike most other Sun Java APIs) there are no real interfaces in place, which makes it hard to mock pieces out. An excellent solution to this problem is Dumbster.

Continue reading "Unit testing email" »

August 27, 2004

Singleton != Static

On Cedric's latest entry he complains about statics, and quite rightly. However, one of the commentators missed the point.

Continue reading "Singleton != Static" »

About August 2004

This page contains all entries posted to Software is too expensive to build cheaply... in August 2004. They are listed from oldest to newest.

July 2004 is the previous archive.

September 2004 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.35