Accelerated learning

25 Oct 2014

In my never ending quest to learn more about the world and becoming the best person I can be, I’ve accumulated some techniques to optimise for as much learning as possible in my daily life.

Rails with PostgreSQL on Docker using Fig

02 Aug 2014

Docker is a platform for building, shipping and running all sorts of applications (source). It’s a very powerful and extensible alternative to other forms of virtualization and platforms like Heroku. This post described the steps I’ve taken to get an existing Rails app onto Docker using Fig.

Deploy Rails with PostgreSQL to Dokku

06 Jul 2014

Dokku is a “Docker powered mini-Heroku in around 100 lines of Bash”. It’s really awesome as it allows you to get your own application platform up and running under an hour! In writing this post and trying out Dokku, I used an existing Rails 4 application that is currently running on Heroku. Because the application adheres to most of the concepts from the 12 factor methodology, I didn’t have to change a single thing in the application to get it running on Dokku. If you find your application relies too much on server specifics, this might be a good time to take a look at the 12 factor methodology.

Breaking down Rails 2 using plugins

05 Jul 2014

Going SOA is no easy feat, and as usual when something is complex and daunting, the best course of action is to break down the problem and take it one step at a time. With a big application, a good first step would be to separate the application into it’s apparent domain concepts.

Ruby installations on steroids

23 Mar 2014

If you are using Ruby, chances are you’re using Rbenv to manage Ruby installations. This post concerns some plugins and tips to make Rbenv even more awesome.

Improve your posture with these exercises

12 Jan 2014

As developers we spend a lot of time sitting at a desk hunched over a keyboard. Over time this will leave you with stiff round shoulders and a slumped posture. This post contains some videos of simple exercises that, if performed regularly, will improve your posture and ultimately your health and well being.

Work on multiple branches with Git workdir

27 Oct 2013

Sometimes I find the need to work on multiple branches in the same repository at once. This can be caused by many different scenarios; waiting for tests to finish, running two versions of an application at the same time etc. In short, anywhere where a regular git stash/branch workflow falls short. I also wanted a solution where I didn’t have to manage multiple .git folders.

Faster Git workflows

01 Oct 2013

Over the last decade, Git has fast become an integral part of most developers daily routine. Fork this and merge that, you know the drill. There are many strategies for using Git to develop software, and at HouseTrip we follow a simple feature-branch model. All new changes are committed in separate feature branches, and then pull-requested to be merged into master, or an integration branch for larger features. This workflow works very well, and that is in large part due to the awesomeness of GitHub.

Migrate Rails to JRuby on Heroku

13 Nov 2012

This talk by Charles Nutter recently inspired me to move one of my personal projects to JRuby. The app is fairly small, running Rails 3.2 using Postgresql, activemodel-serializers and oAuth to name a few.

Show Rails environment in Pry

31 Oct 2012

I believe that environment awareness is important. Especially when it comes to your Rails environment and mocking around in a production setting. Hence, I added the following lines to my Pry config (.pryrc) to have the prompt include the current environment.

Ignore specific requests with VCR

18 Jun 2012

I recently needed to test the integration between two Rails apps running locally on my machine and wanted to record the HTTP interactions with VCR. VCR enables you to mock HTTP requests by recording interactions and later replay them when you run your tests. This is useful when dealing with third-party API’s and if your application is interacting with other applications you don’t want to depend on when running your tests.

Radical Feature Justification

24 May 2012

Reading Eric Ries’ The lean Startup has recently got me thinking about how best to avoid wasting time developing the wrong things. Spending time developing a feature is always in vain if no one uses it, no matter how sound the idea and implementation might be.

Import Heroku databases locally

22 Apr 2012

I just discovered a way simpler solution. Add the taps gem to your Gemfile, and run heroku db:pull. Voila!

Metrics driven development

10 Mar 2012

The statement “If you can’t measure it, you can’t optimize it” really sits well with me. In my short spanned working career I have already spent time on code, which did not result in any added business value. One example of this was a large refactoring on the persistence layer of an app. Although this cleaned up the code, it did not change anything seen from a business perspective. E.g. not measurably driving the business forward. This talk by Coda Hale made me realize that if a feature/change doesn’t add any business value, then there is absolutely no reason for spending time (and your employers money) on it.