David Weldon

coffeescript tricks

a selection of artisanal amuse bouche

Like all programming languages, coffeescript has a number of subtle treasures. In this post I'll catalog several of my favorites. Enjoy!

Destructuring assignment

Destructuring assignment is a really cool feature which lets you initialize one or more variables by pattern matching them to an existing object or array. I use this everywhere . . .

Read More

September 17, 2015

meteor: template joins

how to perform a template-level reactive join

Managing the flow of data in a meteor app can be challenging. Subscriptions can be activated from anywhere, and there's no easy way to determine which templates depend on which subscriptions. One technique to make these dependencies explicit is to migrate higher-level subscriptions down to the template.

On the surface this seems . . .

Read More

July 12, 2015

meteor: models

how to add a model layer to your app

If I had only one piece of advice to give about building large meteor apps, it would be this: use a model layer. By that I mean DRY up your document-oriented code by putting it in a single location.

When you begin working on a project, it's easy to let logic about your documents spill out all over your codebase - a lot goes into your . . .

Read More

May 21, 2015

meteor: browser policy

A few weeks ago we started receiving some unusual tickets from users who were unable to sign in. After seeing their console errors, it was clear that something was attempting to load a script from best-deals-products.com and inject it into our app. A little searching revealed the script was related to the Lenovo's infamous superfish . . .

Read More

March 25, 2015

meteor: get text

how to read and package text files

It probably goes without saying that most apps need an initial dataset in order to do something useful. Typically you'll seed your databse with some combination of randomly generated and hard-coded documents. In this post we'll be investigating the latter by demonstrating how your app can read text files. In the examples we'll use . . .

Read More

January 02, 2015

meteor: common mistakes

Over the past few years I've spent countless hours reviewing code and answering questions both on stackoverflow and at the monthly SF devshop. There are certain patterns of mistakes and misunderstandings that most meteor developers (myself included) make on their journey toward learning the framework. In this post I'll catalog some of . . .

Read More

December 02, 2014

meteor: How we use Kadira at Edthena

I'm drinking a beer while watching my Kadira dashboard. CPU usage is less than two percent, and life is good.

We launched the meteor version of Edthena in August of 2013. At the time, our app appeared stable to our users, however I had serious concerns about scalability. With even a handful concurrent connections, our CPU usage was . . .

Read More

September 22, 2014


All Categories: vue.js(1) home