The long way through Software Craftsmanship

Podcast: Basta ya de picar (Spanish)

Jan 24, 2015 - 1 minute read - Comments - podcastbasta-ya-de-picar

Some weeks ago I listened to some podcasts from BastaYaDePicar (episodes 1 to 8) and now I’m listening more (9 to 10). I really recommend these to you, and I imagine that the newer episodes (also new format) will be interesting too. They’re in Spanish and narrated by Sebastian Hermida

Code Snippets Stash

Jan 24, 2015 - 1 minute read - Comments - ideaprotiprepository

Following a team member’s recommendation, I recently started a repository to save all my useful snippets. I’ve decided that the examples should be designed guided by tests or at least to have a working example exercised by tests. Also, that I should not reinvent the wheel and use as many open source libraries as possible, reducing the amount of code I have to write myself. Ideally, every snippet should be a maven project (where applicable) and be imported as a small library, therefore being able to reuse the functionality incrementally across projects.

Bank kata in java

Jan 22, 2015 - 1 minute read - Comments - kataoutside-in-tddtddjavapair-programming

Manuel Rivero and I did a subset of the bank kata, proposed by Sandro Mancuso. We’ve used java (mockito, hamcrest, junit), outside-in TDD. The code is spread among several sessions. We have not committed after each step, only at the end of the session. The source code is on github You can read Manuel’s take on the kata on his blog

GMaur code jam 2015: 01 - Mini-Power Swapper

Jan 12, 2015 - 1 minute read - Comments - code-jamgmaurkatakaizen

Last year we started the program 12 months, 12 katas (as inspired by this repository). This year we want to propose something different: an asynchronous code jam ##New problem: Mini-Power Swapper This post belongs to a series: code-jam Each month (or so) we at GMaur will publish a new problem (and announce it on twitter) and post a solution to the last problem. This month, the Mini-Power Swapper You can fork the repo, commit there and send a pull request.

Kata: Reverse Polish Notation in java

Jan 12, 2015 - 1 minute read - Comments - kataTDDjavaRPNreverse-polish-notationcalculatorusing-notes

I’ve written a RPN string calculator in java, using TDD with these: mockito, hamcrest, junit It’s close to the String Calculator kata, by Roy Osherove. This RPN is using mocks (so more difficult than the String calculator) I’ve tried to practice “Your tests are dragging you down” by J.B Rainsberger (mainly, to use something to write on). This behavior is also explained in the book Dirigido por tests (Spanish) by Carlos Blé.

Listening to the tests

Jan 6, 2015 - 1 minute read - Comments - GOOSbookTDD

Specifically the chapter no. 20 (“Listening to the tests”) from Growing Object-Oriented Software Guided by Tests available here is so good to learn to hear to your tests. To hear what they’re trying to tell you, the authors (Steve Freeman and Nat Pryce) explain this to you: I Need to Mock an Object I Can’t Replace Logging Is a Feature Mocking Concrete Classes Don’t Mock Values Bloated Constructor Confused Object Too Many Dependencies Too Many Expectations To close, a quote: