10-08-2014, 11:06 AM
Pour l'instant, je reste un peu sceptique. En fait, je pense exactement la même chose que l'un des commentaires.
Oleg a écrit :Your examples are nice and educating in what is possible. Your code definitively promotes reuse and DRY.
My concern is understandability/readability/overengineering. Examples 8 and 9 are easily readable. Example 10 and 11 are worse. In Ex 8 you needed 1 class, which did all things. In Ex 10 you need MovieAction, Selector, Finder(?) and in Ex 11 all those subclasses.
I’m struggling to find justification for that complexity. How about adding some rationale, when this design should and shouldn’t be used.