Programming

Building a Rack middleware

I'm Chris Saunders, one of Shopify's developers. I like to keep journal entries about the problems I run into while working on the various codebases within the company. Recently we ran into a issue with authentication in one of our applications and as a result I ended up learning a…

IdentityCache: Improving Performance one Cached Model at a Time

  A month ago Shopify was at BigRubyConf where we mentioned an internal library we use for caching ActiveRecord models called IdentityCache. We're pleased to say that the library has been extracted out of the Shopify code base and has been open sourced!   At Shopify, our core application has…

HackTO: This Saturday, April 14th in Toronto

  Artwork based on a Creative Commons photo by John R. Southern. Click here to see the original. HackTO is a hackathon taking place in Toronto this Saturday, April 14th, in which developers will be challenged to come up with and implement an application that takes one or more of…

I have an animated idea

We (Dan, Ryan, and myself) launched a small page called "I have a business idea". Check it out, if you haven't already — especially in Chrome or Firefox or Safari. Assuming you have JavaScript turned on (as most of you do), you should see some fun animations as you scroll down…

RESTful thinking considered harmful - followup

My previous post RESTful thinking considered harmful caused quite a bit of discussion yesterday. Unfortunately, many people seem to have missed the point I was trying to make. This is likely my own fault for focusing too much on the implementation, instead of the thinking process of developers that I…

RESTful thinking considered harmful

It has been interesting and at times amusing to watch the last couple of intense debates in the Rails community. Of particular interest to me are the two topics that relate to RESTful design that ended up on the Rails blog itself: using the PATCH HTTP method for updates and…

Learning and Having Fun with Git and GitHub

Octocat looks a little lost. I snapped this photo of a guy wearing a giant Octocat head while posing for photos on Austin's 6th Street during South by Southwest 2012. There are still many developers out there who seem a bit uncomfortable with Git and GitHub. If you're one of them,…

Shit Programmers Say

After Shit Silicon Valley Says comes Shit Programmers Say. There’s a swear word at the end, so if you’re at an office that doesn’t tolerate salty language, make like the programmers in the video and switch to headphones! Thanks to Andy Baio at Waxy.org for the find! [ This article…

JavaScript Oddities from the WAT Video, Explained

If you watched the WAT video that I pointed to in this earlier post, you saw some really counterintuitive behaviour from JavaScript and probably laughed and facepalmed at the same time. A Stack Overflow user going by the handle of Ventero has taken it upon himself/herself to explain each of…

Create an online store in minutesTry Shopify Free