Any sizable web application needs validation. Doing it yourself is for the birds, so I wanted to incorporate a backbone plugin to help solve the problem. For this example I chose to use Backbone.Validation. Start with a basic framework. Brunch Application Assembler is a great way to bootstrap these projects.
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
What’s your database of choice? For the next few months, I’ll be working with the team at LocalRuckus, building a new Node.js API and application. As a small shop with no dedicated Sys Admin or Dev Ops, its essential that we find Node.js hosting that is flexible, fast, and cost-effective.
On a recent trip to San Diego, my wife and I crossed the U.S./Mexico border at San Ysidro to visit the lovely city of Tijuana. A 5 minute walk across the border was all it took to enter Mexico. After a few hours of touring the Mexican shops (and the
Heroku provides a free add on for running scheduled jobs. This provides a convenient way to run scheduled tasks in an on-demand dyno, freeing your web dynos to focus on user requests. I’m currently writing a node.js application in coffeescript that has some modest job scheduling needs. Heroku’s documentation
Node.js gets a lot of well-deserved press for its impressive performance. The event loop can handle pretty impressive loads with a single process. However, most servers have multiple processors, and I, for one, would like to take advantage of them. Node’s cluster api can help. While cluster is a core
I feel like 2013 holds a lot of data analysis for me, so I’d like to start the year off by learning a language that excels at statistical analysis and visualization. Enter R, a language that has gotten quite popular over the past few years. In the interest of expanding
I’m currently building a project using as a high performance cache in a node.js application (using the excellent ). My key values will be fairly large ( between 512b and 1kb). The Redis documentation doesn’t specifically warn against keys of this size, but it still seems appropriate to do a
MongoDb is a real lifesaver when it comes to improving developer productivity in web applications, however, that’s only a small part of the power in MongoDb. To do a lot of the deep down data mining, we need to learn to use Map/Reduce to massage our data. Please note, some
As readers may be aware, I’m really into the Play! framework. It combines the convention-over-configuration mindset of ROR with the Java/Scala libraries and skills that I’ve worked on for years. That said, Play! isn’t idiot-proof. Here is a list of 5 mistakes to avoid in your Play! projects. 1) Using