tdd

Recursos de programación de tdd
I've just watched this very interesting talk by Stephen Thomas: Unit Testing JavaScript Applications - por Garajeando
Web
14-06-2014
http , tdd
I did the Berlin Clock kata in Clojure using Midje.These are the tests:And this is the final version of the code:I used a mix of TDD and REPL-driven development.To document the process I commited the code after every passing test and every refactor. I also commited the .lein-repl-history file so that you can see all the micro-tests I did on the REPL to create some of the features and learn about Clojure including many beginner mistakes :) You can find the resulting code in this GitHub repository...
Durante esta charla, impartida por Alberto Rodríguez, veremos algunas técnicas y prácticas ágiles que podremos aplicar en nuestros proyectos y que nos ayudaran en nuestro día a día. Veremos también en detalle el ciclo de vida por el que debería pasar una historia de usuario para centrarnos luego en el proceso de desarrollo de la historia a través de desarrollo orientado a tests. A través de un ejemplo práctico escrito en Scala veremos como resolver un sencillo ejercicio con TDD. Y por último intentaremos resumir todas las técnicas vistas en la charla y discutir entre todos su posible aplicación práctica en Paradigma. Más información: http://www.paradigmatecnologico.com/eventos/desarrollo-agil-y-tdd/ ¿Quieres saber más? http://www.paradigmatecnologico.com
Charlamos con Alfredo Casado de la vida y la muerte de TDD. Por supuesto, no ha tenido nada que ver la cantidad de opiniones y blog posts que se han generado en estas últimas semanas.
Web
17-04-2014
http , tdd
I've just watched this great explained katacast by Brian Marick Clojure TDD demo (Robozzle)The top-down style Marick uses to grow his code through TDD reminds me a lot of how Gregor Kiczales worked through the example programs in Racket of his Introduction to Systematic Program Design - Part 1 Coursera course that I took a while ago.The difference between the two processes is basically in the tooling, because Midje allows Marick to "stub" the results of helper functions so he can get feedback ab...
Web
22-03-2014
http , .net , tdd
I've just watched a great KataCast where Rickard Nilsson test-drives the second part of the String Calculator Kata introducing interaction based testing with mocks: String Calculator TDD Kata 2 - InteractionsRickard Nilsson comments his solution to the kata in this blog post. - por Garajeando
I've just made a small TDD kata in C++ using GoogleMock.I committed the existing code after each green and after each refactoring step.Check the step by step process in GitHub. - por Garajeando
Web
02-03-2014
http , c++ , tdd
I've just coded the StringCalculator kata in C++ using GoogleMock and Boost.Regex.I commited it step by step. Check the resulting code in Github. --------------------------Update: I did some refactorings to my solution in order to a) reduce some duplication and b) avoid having to use Boost.Regex. They're explained, respectively, in the two following posts:Extracting reusable C++ templated functions from StringCalculator codeUsing C++11 to split strings without using the boost library - por Gara...
In our first iteration in the JavaScript Code Retreat, we worked on the rules to tell if a cell goes on living or if a new cell is created having the restriction of not using conditionals.So we used two very small functions: goesOnLivingWith and isCreatedWith that accepted the number of neighbors as a parameter. We implemented them using TDD and end up with the following tests:The main problem with the names of these tests was that they were tightly coupled to the conditions in the rules we had...
Today I read chapters 5 (Functions) and 6 (Applied Functions and Closures) of Test Driven JavaScript development. In them, Christian Johansen goes deep into JavaScript powerful functions talking about functions as first class objects, closures, free variables, recursion, binding, namespaces, etc. I'm enjoying a lot his book.To practice a bit with recursion and closures and also get more acquainted with Jasmine, I decided to do the FizzBuzz kata again but applying some of these concepts. I did TD...