1. testdouble.js vs. sinon.js

    I hate “X upstart vs. Y incumbent” technology posts. They’re reductive, provocative, and they cherry pick contexts favorable to the Shiny New Thing™ over the older, broader standard-bearer. So, if you’re happy using Sinon.
    Time An icon of a clock Publish Date
    March 13, 2016
    Person An icon of a human figure Authors
    Justin Searls
    Category An icon of a paper organzier Categories
    JavaScript
    Testing
  2. Good migrations.

    We wrote a gem! It’s called good_migrations and we recommend you add it to all of your Ruby on Rails projects and subsequently forget about it. Just do it. There’s no reason we can see not to blindly copy-paste this command right now:
    Time An icon of a clock Publish Date
    February 5, 2016
    Person An icon of a human figure Authors
    Justin Searls
    Category An icon of a paper organzier Categories
    Ruby
  3. Debugging gems with git bisect.

    One of your project’s dependencies just released a new version you want. You run bundle update as you ritualistically cross your fingers. All your tests are now broken. What do?
    Time An icon of a clock Publish Date
    January 12, 2016
    Person An icon of a human figure Authors
    Justin Searls
    Category An icon of a paper organzier Categories
    Development
  4. Arcane knowledge needed to write a test.

    A single test This weekend I was reminded how complex (and in some cases, convoluted) typical test setup is for Rails applications. The steps below were all necessary in my case, but please don’t read into this list any criticisms of these tools’ excellent open source maintainers.
    Time An icon of a clock Publish Date
    February 16, 2015
    Person An icon of a human figure Authors
    Justin Searls
    Category An icon of a paper organzier Categories
    Ruby
  5. Healthy migration habits.

    ActiveRecord migrations are a killer feature of Ruby on Rails. The feature is very well-implemented, it’s easy to use, and countless teams have benefited from it. Before Rails, most teams I encountered were in the habit of making incredibly error-prone ad hoc changes to each of their application’s databases.
    Time An icon of a clock Publish Date
    November 4, 2014
    Person An icon of a human figure Authors
    Justin Searls
    Category An icon of a paper organzier Categories
    Ruby
  6. Mongo to Postgres.

    This morning, I finished a production migration of a client application off of MongoDB and onto PostgreSQL. I’ll document a few things I learned along the way here, and I’ll spare you arguments about the merits of why we decided to migrate.
    Time An icon of a clock Publish Date
    June 23, 2014
    Person An icon of a human figure Authors
    Justin Searls
    Category An icon of a paper organzier Categories
    Development

Search An icon of a magnifying glass Search the Blog