JavaScript

Fluent Interfaces in Coffeescript

We’ve all seen them – builder patterns that make object construction clean and readable. person().named(‘Bob’).withSpouse(‘Alice’).bornOn(’01-26-1982′).build() I used to do these all the time in Java (we called them fluent interfaces), and I just realized today that I had no idea how to do this style in Coffeescript. Well, lets remedy