Author Archives: ciaranarcher

Delegating Nicely

Usually we use delegation to help separate responsibilities and avoid mashing all responsibility and logic into the the one object. This is a great goal and the first one SOLID lists. For those who might not have seen a concrete … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Hacker News – In your Terminal

Over the Christmas period I found time to write a Ruby Gem called hacker_term which I’ve just published to RubyGems. It allows you to see a list of the front page HN stories, sort them by title, score and number of … Continue reading

Posted in Uncategorized | Tagged , , , , | 3 Comments

Vagrant

A classic problem In my latest job I’ve been tasked with developing processes and tools for a large-ish development team (30+). I knew within a week of starting that there was one major problem we had to solve quickly, and … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments

Removing most – not all! – gems on Windows using Powershell

We’ve started using bundle package to package all our gems prior to deployment. But before I push our code up to take care of this I need to clean down all the globally installed gems on each production machine. But … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Using RSpec Mocks outside of tests

When I started mocking objects using RSpec Mocks, I never thought I’d end up using them outside of actual unit testing. But this week, while working on a new internal gem to build out how we register documents, I found … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

How Etsy Helped us Deploy

A Checkered Past When our company was founded – long before the advent of GitHub or other cloud-based social coding hubs – we used to deploy our new code to the website by copying files over the network. And in … Continue reading

Posted in Uncategorized | Tagged , , , | 4 Comments

Consider Mercurial (Yes, Mercurial, not Git)

Rationale Mercurial will be the 3rd version control system I’ve used since I started programming professionally. The first was SourceSafe. The second was Subversion. And now we’ve migrated all our source code to Mercurial. Often I’ll be asked: why did … Continue reading

Posted in Uncategorized | Tagged , , , , , | 9 Comments

Sharing is Caring – Sharing filters between applications

We’ve been creating a set of Rack applications that we are tying together using Padrino. Each application represents an API endpoint for a set of related services on a distinct resource, e.g. /customers or /invoices etc. This is nice. But … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Choosing Padrino

We’re writing a RESTful API for our platform – like just about everyone else. We needed a thin framework layer between the web and our service classes. We craved some organisation. We wanted to learn from the Ruby community how … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Running Padrino Tests on JRuby

This one tripped me up, and I thought others might run into it. If you are trying to run a set of specs under Padrino, you usually run: But this was blowing up for me with the following error: You … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment