How to start using ES6 (and beyond) today

Tags:

Note: Post updated for best practices in 2017! When you want to use ES6 you’re faced with a list of questions: Transpilers, shims, browser support… In this article, I’ll give you a detailed guide on making sure you get started with ES6 the right way, and instructions on how you can set up a workflow for using ES6 in production …

AngularJS best practices: Refactoring existing code to Angular

Tags:

I’ve been involved in several projects where I worked on moving an existing codebase into using AngularJS. Some involved refactoring a small codebase, which is relatively straightforward in most cases, but I’ve also refactored much larger projects where moving everything at once is not an option. Here’s some best practice type stuff that I’ve learned along the way.

Using AngularJS for fast prototyping

Tags:

One of the big pain points in web application development used to be quickly prototyping site layouts. Now we have things like Bootstrap and other CSS frameworks, which give you a quick grid and a bunch of other reusable components. But that does not solve the whole issue: In today’s web applications, standard page load style actions just don’t cut …

3 ways to get backend data to AngularJS

Tags:

It seems this is a rather common conundrum with Angular code: You have some backend data, say in PHP or Rails, and you want to output it when rendering the page so that Angular can display it. Since Angular is designed to work more as a single-page app framework, it isn’t immediately obvious how to do this without Ajax, so …

Knockout vs Backbone vs Angular

Tags:

There’s a lot of talk of various client-side kind-of-mvc libraries. Three of the popular ones I’ve used are Knockout, Backbone and Angular. While there are other comparisons of the three, I feel many of them don’t really touch on some of the aspects that I’ve come to learn from my experiences with the three.

I made a thing: Planetside 2 minigame

Tags:

Random ideas and idle hands lead from one thing to another. While waiting for the Planetside 2 (a large scale MMOFPS) beta to land, I decided to make a hex-grid of the game’s map. Once the map is complete, someone suggests it should be colored in one of the three in-game faction’s colors… then I realize, why not just let …