by Carlos Ble | Aug 11, 2013 | JavaScript, Test Driven Development
Rich internet applications bring a powerful user experience. But in order to achieve that, they must be written totally different from traditional webs. The paradigm is totally different and so the architecture. There is no “server side” as such. In some...
by Carlos Ble | Jul 9, 2013 | JavaScript
The 2nd edition of the SpainJS conference was held in Madrid last week. On Thursday there were workshops the whole day. Talks and networking happened on Friday and Saturday. I attended to the workshops and learned a lot in the first one, about memory leaks hunting...
by Carlos Ble | Apr 7, 2013 | Agile, JavaScript, Test Driven Development
JavaScript object literals are very handy, they are just key-value pairs. Very convenient to implement dictionaries and also a very simple implementation of the Singleton pattern: var message = {sender: ‘bob’, body: ‘hello’}; Duck typing is a...
by Carlos Ble | Mar 22, 2013 | JavaScript, Test Driven Development
Promises are a nice solution to write readable asynchronous code in JavaScript. If you understand Spanish, I highly recommend this great talk on Promises by Enrique Amodeo. But, is the code with promises easy to unit test? It’s not very difficult, you have to...
by Carlos Ble | Feb 11, 2013 | JavaScript, Test Driven Development
Event oriented programming promotes low coupling but not necessarily high cohesion. Always consider the Single Responsibility Principle while designing collaboration through events. I see three primary ways of collaboration: One to One A single object communicates...
by Carlos Ble | Feb 7, 2013 | Agile, JavaScript
Last month I was in Madrid talking about best practices for JavaScript RIAs, in the monthly meetup organized by MadridJS. Here you have the slides: The talk was in Spanish. I expect to give this talk in upcoming conferencies, in English 🙂