Browsing All Posts published on »October, 2009«

Beware: Your API is more public than you may think

October 29, 2009

Comments Off

I made a classic error today in the public API of a Java service. I somehow convinced myself that wrapping an “internal” exception in a public (“external”) API service-level exception would ensure that client would still only be dependent on the external exception. This was however not the case after I sensibly preserved the cause of the… [Read more…]

Interesting Mapper/Builder Strategy

October 14, 2009

Comments Off

Jakub has an interesting slant on the problem of mapping objects from one representation into another, without XML. This is something I’ve come up against many times on my most recent project. http://www.jakubkorab.net/2009/10/a-better-builder.html My thoughts: I like this approach. It provides a very elegant mechanism for mocking, for sure. On my recent project I opted… [Read more…]

Follow

Get every new post delivered to your Inbox.