Record of experiments, readings, links, videos and other things that I find on the long road.
Registro de experimentos, lecturas, links, vídeos y otras cosas que voy encontrando en el largo camino.
Thursday, November 30, 2017
Interesting Talk: "Functional Programming with Effects"
I've just watched this wonderful talk by Rob Norris
Sunday, November 26, 2017
Interesting Talk: "Domain Invariants & Property-Based Testing for the Masses"
I've just watched this wonderful talk by Romeu Moura
Interesting Talk: "Thermodynamics of Software"
I've just watched this very interesting talk by Jérémie Chassaing
Interesting Talk: "Side Effects are a Public API"
I've just watched this very interesting talk by Christopher Armstrong
Friday, November 24, 2017
Kata: Fractions in JavaScript ES5 using the Function as Object pattern
One of the katas I use to start practicing TDD with my mentees is the Fractions kata. This kata is great to practice writing a good list of examples and doing small baby steps. I first learn about it while doing the J. B. Rainsberger wonderful TDD course.
We usually do it in Java, but last week Antonio and I did it in JavaScript ES5 using the Function as Object pattern. This is a very interesting pattern to create objects that you can use in any language with first-class functions and closures. In Codesai we use and teach this pattern when working in projects using ES5.
We had a great time doing this kata in several short sessions that are also helping me in my recovery process.
These are the tests we wrote:
and this is the resulting code:
See all the commits here if you want to follow the process. You can find all the code on this GitHub repo.
We usually do it in Java, but last week Antonio and I did it in JavaScript ES5 using the Function as Object pattern. This is a very interesting pattern to create objects that you can use in any language with first-class functions and closures. In Codesai we use and teach this pattern when working in projects using ES5.
We had a great time doing this kata in several short sessions that are also helping me in my recovery process.
These are the tests we wrote:
and this is the resulting code:
See all the commits here if you want to follow the process. You can find all the code on this GitHub repo.
Subscribe to:
Posts (Atom)