tdd

Recursos de programación de tdd
El property based testing es una herramienta muy útil que en ciertos casos puede complementar el testeo basado en ejemplos con TDD. ¿Suena bien la idea de generar una batería de pruebas que comprueben que nuestras soluciones cumplen ciertas post-condiciones? Si alguna vez has intentado hacer TDD en problemas fuertemente algorítmicos y te has encontrado con un montón de problemas, en esta charla intentaré dar una nueva herramienta a mucha gente para validar otra clase de problemas. Autor: Rafael de Castro
Web
05-01-2015
http , tdd
I've just watched this great talk by Emily Bache: Is TDD dead? Of course not! But what´s all the fuzz about then? - por Garajeando
I've just redone the Roman Numerals kata in Clojure following the advices about test-driving algorithms that Sandro Mancuso gave during his Crafted Code course: Grow an algorithm bit by bitDelay treating exceptions (in this case, because they are more complex)Intentionally cause duplicationFocus on simple structures first The resulting code to convert decimals up to 3999 to roman numerals is much simpler than the code I got the first time I did the kata. I think the reason is that the first time...
Web
12-12-2014
http , tdd
Last week Leo Antoli facilitated a kata for Software Craftsmanship Barcelona. We had to solve the Studious Student exercise. Leo wanted us to experiment how useful testing is in an exercise like this one, so we divided the group in some pairs using TDD, some pairs testing after writing the code and some pairs not testing at all. The exercise is a bit tricky as pairs that were not testing discovered at the end, whereas the ones doing TDD or testing after coding discovered early during the proce...
Web
22-11-2014
http , java , .net , tdd
These are the links mentioned in this week's conversation about the 10th and 11th chapters: Code samples Source code for the book by Steve Freeman Posts and Papers ArrayBlockingQueue Java DocumentationMock Roles, not Objects by Steve Freeman, Nat Pryce, Tim Mackinnon and Joe WalnesClean architecture / never test the GUI? from Clean Code Discussion Google GroupRobert Martin compares GOOS outside in approach with his inside out approach from Growing Object-Oriented Software Google GroupState vs In...
In the previous post I presented a solution of Conway's Game of Life in Clojure. I've refactored that code in order to eliminate some duplication from the game rules. First of all, I coded using TDD a new function will-have-a-cell? that later substituted both will-go-on-being-a-cell? and will-be-a-cell?. These are the tests for the game rules after deleting the obsolete functions (will-go-on-being-a-cell? and will-be-a-cell?): and this is the new function's code: Once I had the new function I u...
Web
18-11-2014
http , go , java , tdd
Last Saturday I attended the Global Day of Code Retreat in Zaragoza where I had a great time practicing with other kindred spirits. Today I did a version of Conway's Game of Life in Clojure having in mind some of the ideas I took home from the code retreat. These are the resulting tests using Midje: and this is the code: When I have some more time and learn more Clojure, I'd like to make it configurable to change the geometry of the game and its rules using different versions of the neighbors, w...
Web
09-11-2014
http , tdd
I've just done the Bowling Game Kata in Clojure. These are the tests using Midje: and this is the code: I used a mix of TDD and REPL-driven development to solve it. I commited the code after every passing test, every refactor and every major REPL spike. If you want to follow the process, you can find the commits step by step here. You can find the resulting code in GitHub. - por Garajeando
Preparado por: Nestor Salceda, Alberto Perez (Apa), Jaime Gil, yo mismo (eferro)Basado en el taller creado por  Javier Acero, Guillermo PascualAprenderemos a crear una aplicación en la que el negocio sea el centro y que la arquitectura emerja del propio proceso de creación (por supuesto usando TDD).Enunciado:Vamos a desarrollar el equivalente Maño de twitter, llamado "Cós". Podéis ver el enunciado completo en: https://github.com/aleasoluciones/pycones2014Restriccion...
Web
19-10-2014
http , .net , tdd
These are the links mentioned in this week's conversation about the 4th chapter: Posts Beyond Test Driven Development by Liz KeoghWalking Skeleton by Alistair CockburnDesign as Knowledge Acquisition by Alistair CockburnElephant carpaccio by Alistair CockburnForget the walking skeleton – put it on crutches by Gojko AdzicAnother way to think about geeks and repetitive tasks by Jon UdellSimplicators by Nat PrycePorts, Adapters and Simplicators by Nat PryceWalking Skeleton on C2 wiki Talks Decision...