Archive for the 'Code' Category

Do it: use ridiculously long test method names

At work I’m probably known by a couple people for writing riciculously long test name, so this post by Patrick Lightbody made me smile.

Unfortunately, Dan’s examples of test methods were rather weak - often the agiledox crowd uses really simplistic examples. So I thought I’d give some examples of some of my methods [...]

Maven2, Cargo and deploying to Jetty 6 with Commons Logging

Java and it’s classloaders, always a fun time!

Every been using Maven2, Cargo and deploying to Jetty 6 with Commons Logging? Probably not, but if you were you’d run into this I bet.

org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.

This is a Type-2 Classloader error. I know, what does that mean?

Type-II: Assignment incompatibility of [...]

Napoleon Dynamite speaks on the Abstract Factory Pattern

Oh that Napoleon Dynamite such the software developer…

Don: Hey, Napoleon. What did you do yesterday?

Napoleon Dynamite: I told you! I spent it with coding up sweet classes!

Don: Design Patterns, did you use any?

Napoleon Dynamite: Yes, like 50 of ‘em! Clients kept trying to instantiate my concrete classes, what the heck would you do in a [...]

Test Driven Development: Fake it till you make it.

xkcd.com: Random Number

Need more info? Can Test-Driven Development and Programming By Intention play together?

Testivus - Testing for the rest of us.

I am a believer in Testivus.

Developers need to take more responsibility for testing their code. But the majority of developers are not willing, nor ready, nor able to jump on the bandwagon of the more extreme and demanding developer testing movements such as Test Driven Development. Testivus is a proposed developer testing movement [...]