Author Archives: Ian Cooper
Avoid Testing Implementation Details, Test Behaviours
Every so often I return to Kent Beck’s Test-Driven Development. I honestly believe it to be one of the finest software development books ever written. What I love about the book is its simplicity. There is a sparseness to it … Continue reading
Why CRUD might be what they want, but may not be what they need
A brief history of CRUD The Rolling Stones once sung: “You can’t always get what you want, But if you try sometimes, well you just might find, You get what you need” I think the same is true of CRUD. … Continue reading
Why use the command processor pattern in the service layer
Using a Command Processor When we think about a layered or hexagonal architecture it is common to identify the need for a service layer. The service layer both provides a facade over our domain layer to applications – acting as … Continue reading
Why Repository SaveUpdate is a smell
One of the idioms I see a fair amount of is the SaveUpdate method on a Repository. The intent is usually to persist an item to storage, using a SaveUpdate method to lazily avoid the question of whether it is … Continue reading
Mocks and Tell Don’t Ask
One of our alumni Karl blogged a request recently for folks to stop using mocks. Once upon a time I also made clear that I had a significant distrust of mocks. I’ve mellowed on that position over time, so I … Continue reading