When I ramp onto a new project, one of the first things I do is to look at the system test suite. Because system tests exercise the entire system, they are a great place to document the intent and assumptions built into your application. When they are written well, they can be a source of […]
I’ve been messing around with some Twitch integrations in my free time. Twitch’s API is well defined and has some very good documentation around it. In this post, I’ll explain how I used an Ember Simple Auth custom authenticator to implement SSO (Single Sign-On) with Twitch.
Frameworks are constantly changing and evolving—especially open-source ones, which we rely heavily on at Atomic. And it’s not always easy to stay up to date. Updates sometimes deprecate APIs or introduce new architecture patterns. These changes can require significant rework of a project, and they are expensive for customers. Nevertheless, updates are worth it. In […]
Security Assertion Markup Language (SAML) is a protocol for single sign-on. SAML handles communication between a service provider (SP) and an identity provider (IdP). The identity provider acts as an authentication and identification mechanism for service providers. In this post, I’ll walk you through setting up your Rails application as a SAML IdP. This post […]
Git is a very important tool. Not only does it keep a history of a project, but Git also makes it easy for a team to collaborate in a codebase. Although it’s such an important tool, it’s often under-utilized and on occasion, even neglected. A clean Git history is easy to understand and tells a […]
We all have them. Those once-great ideas that are now gathering dust somewhere in a GitHub repository. They start out fun and exciting, but quickly move to the back burner and out of your mind altogether. Maybe life got in the way, maybe work did, or maybe you simply lost your motivation. There are many […]
Homebrew is an extraordinarily helpful tool to install and maintain system libraries. However, until I found out about the switch command, I didn’t have a straightforward way to switch between versions of a particular keg. Here’s how you can use it to switch between Postgres versions. 1. Select Your Version If you run brew info […]
Active Admin is a fantastic library for building an administrator interface for a Rails application. Not only does it make creating CRUD pages incredibly simple, but it also allows for custom views–something I discovered recently when I needed to create a dashboard page that included several charts.
Every Rails project I’ve worked on has used Active Record. ORMs like Active Record have many benefits. They abstract you away from the database. They make querying data elegant and simple (in most cases). However, sometimes Active Record is not more efficient than Postgres.
We all write elegant code the first time that never needs to be changed, right? Me neither. Refactoring is just another tool in the developer’s belt. It wasn’t until recently that I realized how important a tool it is. I started a small refactor that turned into a big refactor that turned into an enormous […]