Adding columns with default values to really large tables in Postgres + Rails

We had a fairly simple task of adding a couple of columns to a table for our Rails app. This is normally a straight forward operation and a boring task at best, but for us the fun only just started. The table in question was a fairly large table with lots of reads on it and in the spirit of no down time, this is the adventure we had.

Read more...

Creating BEM Stylesheets for React Components

There are plenty of options to choose from when it comes to frontend methodologies. As I’ve learned while working with Ember and React.js, web interfaces are composed of powerful components. When thinking about how to approach the organization of a project, I feel the CSS for each component needs to be just as concise and clear as the Javascript that creates it.

Read more...

React Tutorial - Converting Reflux to Redux

There are many great tutorials and boilerplate apps online–linked to in the footer of this post–and even documentation for redux and react itself is fantastic, so for the purposes of this tutorial I’d like to focus on purely how we switched from using reflux to redux in production. You don’t necesarilly need a background in Reflux or Redux specifically to understand what’s going on, but at least a working knowledge of React and Flux is recommended.

Read more...