pyDoubles 1.3 released

What’s new in pyDoubles 1.3? times statement is also available in spies, not only mocks stubs ignoring arguments can live together with stubs defined with arguments a new matcher: obj_with_fields 1: This sintax is now possible:...

El objetivo no es terminar

Nos lanzamos a programar con el objetivo incorrecto: terminar. El software nunca se termina, así que partir con el objetivo de terminar es partir con el barco hacia el arrecife. Lo vas a hundir. El software evoluciona o degenera, pero nunca se termina. El verdadero...

The stubbing spy

Do you really need a stub or do you better use a spy? Or is it a spy object with some stubbed specifications? Let’s see some examples using pyDoubles: You can choose a stub object to prepare the scenario and then, assert on the returned value of the system under...

Ultra simplifying SOLID

This is just another way of viewing the SOLID design principles very very shortly 🙂 S: Methods with no more than 5 lines of code, classes with no more than 3 public methods (average). O: If it works, don’t touch it (extend it) L: Don’t abuse inheritance...

Cartel de lujo en la #XPweek

Del 20 al 23 de septiembre de 2011, tendrá lugar la #XPweek en Madrid. Se trata de los dos cursos abiertos de iExpertos, sobre iniciación a TDD y TDD avanzado, donde además veremos otras cuestiones de XP como la programación en pareja y el ciclo de desarrollo de los...

TDD: resultados empíricos

Hace poco en una code kata alguien me dijo, … “y qué ventajas tiene esto de hacer TDD?”. Le dije… en nuestro proyecto, actualmente con casi 25.000 lineas de código Python (multiplica x4 si piensas en Java), no hemos necesitado nunca bugtracker....