#FridayDojo pre-GDCR: Open-Closed Principle kata

This is a past event

4 people went

Location image of event venue

Details

Hoy tocaba #FridayDojo (https://twitter.com/search?q=%23FridayDojo) y aprovechamos que el Sábado es el GDCR (Global Day of Code Retreat) para organizar una kata de calentamiento con Manuel y Álvaro, los peazo facilitadores que vienen este año desde Barcelona:

We'll meet and practice with the Open-Closed Principle kata http://bit.ly/1FT8m4Z by Matteo Vaccari.

In this style of kata you must follow these rules:
1. Write a failing test.
2. Write a setup that builds an object that makes the tests pass.
3. Write next failing test.
4. Can you make it pass by just changing the setup and creating new classes?
- Yes: Great! Go back to step 3.
- No: Refactor until you can!

*** Ahora bien, como buenos programadores maños, me gustaría deciros... NO HAY HUEVOS de cambiarlo por la variante funcional:

1. Write a failing test.
2. Write a HOF that builds a function that makes the test pass.
3. Write next failing test.
4. Can you make it pass by just changing that HOF so that it creates a new function hat makes all tests pass (you can also create some new helper functions)?
-- Yes: Great! Go back to step 3.
-- No: Refactor until you can!

Ale, allí nos veremos, en el local de Hispalinux a las 18h.