Jacob Stoebel

Diving into Typescript

I have a confession: I think I like Typescript. As someone coming from the world of dynamic languages, I've sort of just assumed that I preferred getting to avoid the ceremony of declaring types as they are created, passed into and returned from functions. I say assumed because apart from...

A Lesson in Refactoring Complex Classes in Ruby

I have always loved the act of refactoring, especially in Ruby. Its a fun puzzle to solve and the reward at the end is code that's easier to read and maintain. One thing I've spent a time refactoring is when a classes' private methods become so complex, that it becomes...

Automating Some Of My Regular Workflows With Ruby

At my day job, I maintain dozens of different rails projects for various clients. One thing I need do to frequently throughout my day is deploy projects, both to staging and production. We use capistrano to handle all of our deployments, but sometimes just the command to kick things off...

Jumping Back In: My New Side Project

Since my son was born last Spring, I've been pretty much heads down on 1) taking care of him with my wife and 2) trying to do well in my new job with ePublishing. There hasn't been a whole lot of time for side projects / outside learning. That will...

Deplying a Rails Applicaiton to AWS with Docker Part 1

setting up dev enviornment followed this tutorial: https://docs.docker.com/compose/rails/ need to mount my host system to get at source code: needed to persist postgres data back to host system once container is finished. rake task to start up need to point at the docker-compose.yml and give correct build context I've been...

Mocks with Sinon.js

My nightlife app app makes use of a few external services in production. This presents some tricky problems when we are trying to test the code. Do I really want my test suite to have to hit the Yelp api during tests? Common advice is that we want to create...