Kent C. Dodds

I love being a husband, father, mormon, and JavaScripter https://twitter.com/kentcdodds #AngularJS #ReactJS #JavaScript @Alianza_Inc @egghead @AngularAir


Watching your AngularJS Watchers

Reduce AngularJS Watch Count…


What makes AngularJS more slow than anything else I’ve encountered is having a ton of watchers. For…


Newspaper Code Structure for Angular


So, how does this “Newspaper Code Structure” concept fit in with AngularJS? Here’s a gist that illustrates how this applies to an AngularJS controller…


Newspaper Code Structure


Your code should read like a newspaper article. Important stuff at the top, details at the bottom. I have a particular convention for my code that leverages some of…


How to distribute your AngularJS module

I’m converting my project to use webpack for a ton of reasons. It’s awesome. This has given me the opportunity to reflect on the relationship between angular modules and npm modules and I think I’ve determined what I believe to be the best way for angular module developers to show the npm angular developers some love. (And, I encourage you to join…


Accessibility Mode

Your entire application should be accessible. I’m not going to go into why. There are plenty of articles describing the wins. This is to describe one thing that I did where I work that appeased our designer, but maintained accessibility.

I’m talking about that nice blue outline browsers give you when an element receives focus.


ES6 Getter Setter

It’s actually very simple:

var x = 0;
var y = (newX) => x = typeof newX !== ‘undefined’ ? newX : x;

In pre-ES6, the equivalent would be:

var x = 0;
function y(newX) {
return x = typeof newX !== ‘undefined’ ? newX : x;
}

The main three differences are

  • No need for a return statement…

AngularJS: CSS in JS

I was intrigued by the slides from Vjeux entitled “React: CSS in JS” (which is very good stuff and I would encourage you to read through it). I decided to see what it…


Why I care about smart watches

My experience with the pebble and why I’m excited for the Moto360

What I’ve got


AngularJS One-time bindings and Recompiling Templates

For the non-trivial Angular Application


If you’ve worked on a sizeable AngularJS application, you’ll…


Watching your AngularJS Watchers

Reduce AngularJS Watch Count…


What makes AngularJS more slow than anything else I’ve encountered is having a ton of watchers. For…


AngularJS Script Loading

Browserify? Require.js? Concat w/ Sourcemaps? An alternative approach…


IMPORTANT NOTE: I now use webpack and, as awesome as this was…