Design-Patterns icon indicating copy to clipboard operation
Design-Patterns copied to clipboard

Added some try for Template pattern

Open Cotel opened this issue 7 years ago • 0 comments

Solve #44

We need to discuss if this is really a template because I am not convinced.

I doubt because in this case nothing should change in concrete templates, they just call their respective services. On the other hand, the original responsability of a controller is to handle the request, and the template delegates how this request must be solved into its concrete controllers.

I didn't write any test in case we don't follow this example. Also I don't know how to test this mini beast I coded in 20 minutes 😆

Cotel avatar Apr 28 '17 16:04 Cotel