por Carlos Ble | Feb 24, 2014 | JavaScript, DDD, Test Driven Development
Last week I was the teacher in the second edition of the IronHack, well for the last two days of the week. This time I’ve joined the group on their second week rather than the fifth. So I’ve been the one introducing unit tests. It’s been quite...
por Carlos Ble | Jan 27, 2014 | Agile, Clean code, DDD
With good names for packages, classes, methods, variables,… code should be self-explanatory. Long method names are not a problem if they really make code read better and don’t reveal too much implementation details. Names are more powerful than most...
por Carlos Ble | Jan 10, 2014 | Free/Libre Software
I am using LeanPub to create some manuals and it’s a very nice service. You just have to use Markdown to write your document and it generates a good looking pdf document from it. Well, as far as I’ve read today it’s actually kramdown a superset...
por Carlos Ble | Nov 28, 2013 | Retrospectivas, DDD
I am one of the lecturers/mentors of the first IronHack edition, a training program for people who want to become professional developers. My part takes only three days and it’s been this week. Three full-day hands-on sessions on JavaScript, TDD and...
por Carlos Ble | Nov 24, 2013 | JavaScript, Test Driven Development, Testing
Many frameworks use the word “mock” for what in reality are “spies”. But that’s OK, the work “mock” in English covers actually all the possible test double types… However according to G. Meszaros, a mock object is a...
por Carlos Ble | Nov 14, 2013 | Testing
In general I prefer to wrap up system functions so that I can inject test doubles and test drive my designs easily. In general is not a good idea to mock objects you don’t own. But this time I was doing some research, preparing one edition of my Online Training...
por Carlos Ble | Nov 10, 2013 | Clean code
Methods should be short, from 1 to 7 lines of code, maximum 10 in some cases (with the exception of some algorithms). Because a method does just one thing its name should describe it precisely. But it should not contain implementation details (like data types). The...
por Carlos Ble | Nov 8, 2013 | Clean code
I believe the idea of a single exit point for functions comes from the 70’s. A function used to have only one exit point, a single return statement. I still see some developers doing this but it’s not a good idea. As soon as you have found what you were...
por Carlos Ble | Oct 30, 2013 | Agile, JavaScript, Retrospectivas, Test Driven Development
Wow, AgileTestingDays 2013 it’s being awesome! I gave my talk today, a practical “live coding” session. Last week I created a real-time application to communicate with the audience so that when I am speaking they can tell me if they are understanding...
por Carlos Ble | Oct 24, 2013 | JavaScript, Plumbing
I didn’t know that the default browser installed on Android is called Webview. I haven’t created any native Android app ever. But I wanted my web app to run on Android using Websockets. Unfortunately, websockets are not implemented in Android Webview. In...