Archive for category API

Feedback welcome: session proposals for Agile 2010

I just finished writing two proposals for Agile 2010. As usual, I asked my friends for feedback (through Twitter.) Since the conference’s site requires registration and some of my friends don’t have an account, I’m blogging about my proposals, hoping to get some feedback (thanks Jonathan for the suggestion!) As a side (and funny) note, [...]

, , , , , ,

No Comments

A (overlooked?) use case for the Strategy pattern, part 2: it’s not about Template Method

Recap As I explained in my previous post, I think there is a use case for the strategy pattern that, in my opinion, we often overlook: This is what I’ve seen: class A has method x. Just after method x is done doing its thing and before it exits, it calls a (sometimes empty) protected [...]

, , ,

2 Comments

A (overlooked?) use case for the Strategy pattern

Composition over inheritance. It seems that we all agree and understand this valuable principle. I’ve been reading a good amount of code lately from some open source projects (including mine,) and I think we are still missing at least one use case where to apply it. This is what I’ve seen: class A has method [...]

, ,

9 Comments

A couple of lessons I learned about API design

One of the reasons I work on open source is to become a better programmer. Learning opportunities come from different sources, being practice the more obvious one. In the last couple of weeks I learned two important lessons about API design not by practicing my craft, but from listening to our users. What I learned [...]

, , ,

13 Comments