Lorenzo Planas

Programmer · Business owner

Close to the metal, Part 1: Building an HTTP API with members and collections

HTTP APIs that handle collections of items, such as timelines or comment threads, may benefit from using collections and members as abstractions for resources. Check also an specific example where I use a repository to try and separate behavior from persistence.

March 24, 2014

Testing event binding and unbinding with Jasmine

Events are fundamental for Javascript apps. Use a simple technique to check your events are handled as you expect, and verify that you clean up event bindings, reducing memory leaks and zombie views.

March 12, 2014

Cleaning up DOM selectors in Jasmine specs

Testing views in Javascript apps means interacting with the DOM. Make your specs less brittle by extracting and reusing DOM hooks in your views.

March 5, 2014

Headless Javascript testing with Jasmine 2.0

A no-frills approach to running Jasmine specs from your console, no browser needed.

March 2, 2014

Apprenticeship Patterns

A review of an inspirational book for programmers that care about their career and their profession.

January 28, 2014

Getting Ready for the new year

Three practices to be a little bit more productive next year.

December 30, 2013

Testing Eventmachine periodic timers

Eventmachine loops are a bit unintuitive to test coming from an imperative background. Here's a little tip to test timers in a simple and effective way.

September 22, 2013