Kasper Tidemann - human, developer, businessman, man of the world.
From our hands we give.

Category: JavaScript

HTML-safe strings in Handlebars

Quite often, you may find yourself working with JavaScript strings containing HTML. If you output these in Handlebars using the normal double-bracketed notation, a string containing Hello there!<br />Good to see you. will be output as just that: Hello there!<br />Good to see you. In order to insert the actual HTML, use the triple-bracketed option […]

JavaScript style guide

There are as many styles of coding as there are developers – we all have our own way of writing code that feels just right. In an attempt to solidify some common patterns, Airbnb has created a JavaScript style guide. It contains many small tips for better readability, including one of my own favorites: discouraging […]

Interview with Tom Dale from QCon

Recently, Tom Dale gave an interview at QCon about Ember.js and similar JavaScript frameworks, the highly useful Ember Inspector, life as an open source contributor, and much more. It’s a really great interview, definitely recommendable if you’re into Ember.js.

Ember.js meetup in London

I’ll be speaking at the Ember.js meetup in London this Wednesday, the 11th of December. My talk will be about Ember.js and offline mode, how to get started and what to keep in mind as you go. If you’re in town, swing by and say hi! There are still seats available.

Where are the records stored in Ember Data?, part 3

With the release of Ember Data beta 1, the way records are stored locally changed once again, paving the way for a new blog post about how to currently find and inspect those records. Adding a bit of context here, you might find yourself in a situation where you want to know if a record […]


There’s a neat feature in the Ember.js computed properties API that has received little attention so far, yet definitely deserves to be mentioned more: the Em.arrayComputed function. Essentially, it’s a helper that wraps a computed property function just like the Em.computed.* equivalents. However, Em.arrayComputed is especially useful for working with arrays. Here is a basic […]

Detecting a disconnection client-side using Faye

I’ve seen a couple of questions about this on various forums out there. The common goal is to detect a disconnection from the server on the client-side when using Faye. Some people start discussing heartbeating as seen in Socket.IO but in Faye, the solution is much simpler. Say you have an App.faye = new Faye.Client(..) […]

Upcoming release of Ember.js 1.0 final and Ember Data 1.0 beta

According to the core team, the current plan is to release Ember.js 1.0 final this Saturday, August 31st. This is a major milestone and such a fantastic achievement by everybody involved. Coinciding is the Ember Data 1.0 beta release which is also scheduled for Saturday. As previously mentioned, work has been going on in the […]

Configuring plurals of model names in Ember Data

Expressing different grammatical categories is called inflection. In software development, inflection libraries such as fleck by Trek Glowacki will help automate the process of converting singulars to plurals and vice versa – something that comes in handy when adding or removing a plural s just doesn’t apply. Say you have a model named App.Activity. Out […]

The jj-abrams branch of Ember Data

These are exciting times for persistence in the Ember.js corner of the web world. First came Ember Data, the official persistence layer for Ember.js. Then came Ember Model by Erik Bryn, a worthy – and at the time more regularly updated – alternative. Later on, Ember.js Persistence Foundation emerged thanks to Gordon Hempton, building on […]

Kasper Tidemann