Author: Joel Griffith


Top 5 React "Gotchas"

React is an open source library for "building User-Interfaces", open sourced by Facebook. If you're familiar with the traditional MVC pattern, React would be the "V" layer of that paradigm. I would even go so far to say that if you're not careful, React can

Continue Reading

Announcing Sicksync

Sicksync is a project born out of the need to "mirror" a file-system quickly. I had issues with rsync and scp as my workflow requires me to VPN to the east-coast, and back to my developer machine in LA. This wasn't super ideal, and for

Continue Reading

Chaining Sinon Mocks

Update Sinon actually already has a nice API for doing this out of the box without any prototype mucking: /** * test.mpsec.js */ var sinon = require('sinon'); var expect = require('chai').expect; var rewire = require('rewire'); var main = rewire('main'); var CoolModuleMock = { start: sinon.stub().returnsThis(

Continue Reading

Array.reduce is pretty neat

You're probably familiar with the standard schlew of Array methods in JavaScript. We're all fond of timeless classics such as forEach, map, and even filter. However, there is one method that has been hiding under the radar (at least for me) for quite a while

Continue Reading

Building JavaScript with JavaScript

Hey friends. Last night I gave a talk on how to build a front-end asset pipeline with gulp. It was pretty sweet. If you missed it, here is the code XOR slides at no additional cost to you: Slide deck is here The Repo is

Continue Reading