refactoring

Recursos de programación de refactoring
Last week some friends from Software Craftsmanship Gran Canaria and I practiced doing Matteo Vaccari's Open-Closed Principle kata. Jose M. Deniz Suarez and I paired to solve it using Ruby. We got two versions of the code. These are the tests: and the code of the first version: In this first version, we used a reduce over a list of translators. Each translator might add or not a translation of the given number to the resulting string. To try something different from what we've tried other times,...
Primera sesión de dudas en la segunda edición del curso de Refactoring
I've just watched this great talk by Nell Shamrell-Harrington: First Do No Harm: Surgical Refactoring - por Garajeando
I just redid the Alphabet Cipher kata from the fantastic Carine Meier's Living Clojure book. I had done it some time ago with Eloi Poch and Rafa Gómez (thanks guys I had a great time) at a Clojure Developers Barcelona event. These are the tests using Midje: and this is the final code: I used a mix of TDD and REPL-driven development committing after each green and each refactoring. What I did was tinkering in the REPL to get rough versions of encode, decode and decipher functions. This kind of...
January- Software Architecture for Developers, Simon Brown- Functional Programming Patterns in Scala and Clojure, Michael Bevilacqua-Linn- Working Effectively with Unit Tests, Jay FieldsFebruary- Vida y Destino (Жизнь и судьба), Vasili Grossman. (2nd time)- Primer Libro de Lankhmar (The First Book of Lankhmar), Fritz Leiber- Drown, Junot Díaz- Los girasoles ciegos, Alberto Méndez- Smalltalk Best Practice Patterns, Kent BeckMarch- Las puertas del paraiso (The Vagrants), Yiyun Li- Growing Object-O...
¿Por qué puede ser malo tener varios puntos de retorno en una función? En este vídeo analizaremos las razones que hay detrás de este mantra :)
Xavi Gost y Sergio Revilla son los profesores del curso de Refactoring: http://goo.gl/OrsEJI Cuando hemos aprendido el "dar cera pulir cera" del refactoring y nuestras funciones ya no pasan de las 20 líneas, nuestro código es semántico y limpio como una patena, entonces empezamos a ver que nuestra estructura, nuestro diseño, también necesita atención. Por tanto aplicaremos mecánicas de refactoring convergiendo a patrones bien conocidos. Accede al curso aquí: http://goo.gl/OrsEJI
En este vídeo explicaremos cómo te puedes ayudar de las cláusulas de guarda para hacer tu código más legible. Más información y material relacionado: http://codely.tv/screencasts/clausulas-guarda-refactoring/
I continue empting the talks queue... Here is another small batch of interesting talks:Microservices: Software that Fits in Your Head Dan North. IMHO this is the more interesting talk I show this year. No spoilers :)   I agree one hundred per cent with the talk. Just show it.Functional_Data_-_Greg_Young-131636650 Greg Young. A practical example of the Event Sourcing implemented using a functional approach. With this approach the flow seems more easy than the OOP approach.se-r...
¿Es malo usar sentencias switch-case? ¿Cómo determinamos que el diseño de nuestra aplicación "tiene problemas"? ¿Cómo modificamos nuestro sistema para mejorar su diseño? ¿Qué son los Code Smells? ¿Y las técnicas de Refactoring? En este vídeo trataremos de dar respuesta a estas preguntas. Más info: http://codely.tv/screencasts/code-smells-refactoring/