Joel Griffith


I'm Joel Griffith, a Web Developer. I have over five years of industry experience in web development. I've worked with Nike, FaceBook, TurboTax, Coca-Cola, Wieden+Kennedy and now work at AppNexus.


  1. Require JavaScript files the sane way: with symlinks

    On an application of medium to large size, requiring JavaScript files with relative paths can become a chore. I think you can agree that seeing: require('../../../some/dir/file_i_want.js') makes you feel somewhat uncomfortable. Though this may work in early-stage projects, and is pretty easy to…

    on javascript, node, browser, require

  2. You should use Rewire

    One of the coolest, almost unheard of libraries, I've ever had the joy of working with is rewire. If you haven't already heard of it, rewire allows you to rewire variables in a JavaScript file to another reference. Wut. Yeah, you heard me, you can do some crazy dependency-injection on…


  3. 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 also become the "C" layer…

    on React, Jest, Babel, ES6

  4. 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 small file changes (where you…


  5. 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(), end: sinon.stub().returnsThis(), pause:…

    on sinon, javascript, chain, unit-test, testing, assert, chai, expect