Skip to content

#FridayDojo pre-GDCR: Open-Closed Principle kata

Photo of Javier Rubio
Hosted By
Javier R.
#FridayDojo pre-GDCR: Open-Closed Principle kata

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.

http://i.giphy.com/11I7ssL2SZFPa0.gif

Photo of Agile Aragón group
Agile Aragón
See more events
Sala Hispalinux
C/ San Blas, 104 · Zaragoza