Devoogle tiene indexados actualmente 17908 recursos relacionados con el desarrollo de software.

Web
20-04-2015
-
I've just watched this wonderful talk by Gregory Moeck: Why You Don't Get Mock Objects - por Garajeando
Web
19-04-2015
-
I've just watched this great talk by Saron Yitbarek: Learning Code Good - por Garajeando
Web
19-04-2015
I've just watched this wonderful talk by Sandi Metz: Nothing is Something - por Garajeando
Dos días de goodHacking en la UPV con el proyecto propuesto por la asociación Espigoladors
After the two previous posts (Clarifying conditional logic and Replacing conditional with polymorphism using multimethods), I had this version of the code: that was being used from the gilded-rose.core name space: Then I started introducing the new conjured items functionality using TDD. These are the new tests for conjured items: and these is the resulting code of the gilded-rose.item-quality name space: Notice the change in the update multimethod dispatch function. Now instead of being :name...
At the end of the previous post (Clarifying conditional logic), I had this version of the code: Even though the conditional logic in the update-item-quality function read much better than the original one, I completely got rid of it using the replace conditional with polymorphism refactoring. I used multimethods which is one of the ways of achieving polymorphism in Clojure. To start this refactoring, I first renamed the update-item-quality function to update-item-quality-old. Then I created a m...
Yesterday I did the Gilded Rose refactoring kata in Clojure which I started working on in the last Clojure Developers Barcelona meetup. This is the original code that I got from a Mike Jansen's GitHub repository: First of all I wrote tests following the description of the kata and had to fix several bugs related with items quality inferior and superior limits, 0 and 50 respectively. These are the tests using Midje: Once all the tests were in place, I started the refactoring by improving the in...