John Barker

Biography

  • Ahead of the curve

    Ahead of the curve

    This is the third and final part in a series I’m writing about lessons that can be learned from functional programming. Find the first part here and the slightly inflammatory second part here. So,...

    Read More
  • Letter to myself as a junior developer

    Letter to myself as a junior developer

    Hi John, it’s me: future you. You think you know everything about writing software, and you’ve been told this same thing by countless others. But take it from me: you know so little you don’t even...

    Read More
  • Start small and compose: A strategy for using FactoryGirl

    Start small and compose: A strategy for using FactoryGirl

    While I’m still not entirely sold on FactoryGirl, I often see it being used in a particularly lazy way. Imagine your basic factory: factory :project Before long you’re adding relations to...

    Read More
  • All evidence points to OOP being bullshit

    All evidence points to OOP being bullshit

    Object Oriented Programming (OOP) as an idea has been oversold. The most commonly used languages in use today are designed around the idea of OOP. Extremist languages like Java force you to think...

    Read More
  • Using ActiveRecord with multiple databases

    Using ActiveRecord with multiple databases

    At Pivotal I’ve been working on a project which uses two databases. Doing some quick searching we came up with a rather naive solution, this quick mixin: module SecondDatabaseMixin extend...

    Read More
  • Why you should care about functional programming.

    Why you should care about functional programming.

    I’ve been experimenting with functional programming (FP) languages for a little while now and their acceptance is generally increasing amongst the wider developer community. This is the first post...

    Read More
  • Facebook and GooglePlus Javascript SDK sign in with Devise + RoR

    Facebook and GooglePlus Javascript SDK sign in with Devise + RoR

    Recently I added a modal sign in and sign up dialog to a Rails application that allowed for sign in using Facebook or Google as well as via email. This dialog can appear any time a user attempts...

    Read More
  • Rename all snake cased coffeescript files to CamelCase

    Rename all snake cased coffeescript files to CamelCase

    While I don't necessarily think CamelCase is the best way to name your coffeescript files, I was unhappy that we weren't consistent on my project. I was going to write a pure find/sed/mv script...

    Read More
  • Cleaning old branches

    Cleaning old branches

    We're using Github pull requests on our project. Which means whenever a pull request is accepted, a branch is left lying around. So I wrote a quick script to remove all remote branches that have...

    Read More
  • The Healthy Gemfile

    The Healthy Gemfile

    Often when working on ruby projects that use Bundler, I see Gemfiles that look like this: gem 'rails', '3.0.15' gem 'rest-client', '1.3.0' gem 'subexec', '0.0.4' gem...

    Read More
  • loading
    Loading More...