Open in app

Sign In

Write

Sign In

Ben Forrest
Ben Forrest

23 Followers

Home

About

Published in CodeX

·Jun 11, 2021

Ruby Refinements — a use case

Scenario In this particular scenario, we have set of Ruby constructs to handle domain constants (business values) stored in YAML files. I’m sure you’ve seen the like. For this example, let’s say we have a file that defines a number of currency constants for use with the Money gem. …

Ruby

6 min read

Ruby Refinements — a use case
Ruby Refinements — a use case
Ruby

6 min read


Oct 5, 2020

Why you should (almost) never rename your Rails database migrations

Rails database migrations are a common source of confusion when working in large — or multiple — development teams. In particular they are a common source of Git merge conflicts. How many times have you gone to merge your pull request— approved by a selection of your peers — only…

Rails

4 min read

Why you should (almost) never rename your Rails database migrations
Why you should (almost) never rename your Rails database migrations
Rails

4 min read


Sep 25, 2020

Are you gitting comfortably? Then I’ll Begin

I hope we all agree that the primary objective of clean code is to communicate the intent of our code to other humans and not to the computer? I’ve been programming for over 30 years and in that time I’ve seen great code and I’ve seen atrocious code. I’ve certainly…

Git

5 min read

Sitting comfortably? Then I’ll Begit
Sitting comfortably? Then I’ll Begit
Git

5 min read


Mar 27, 2019

Creating Active Record scopes using Arel and DISTINCT ON

Active Record scopes are pretty powerful. However, there are some operations which — on the surface — seem like they should be fairly straightforward but are actually quite tricky to achieve satisfactorily. One in particular is creating a scope to yield a subset of an association based on some sort…

Ruby On Rails

6 min read

Ruby On Rails

6 min read


Oct 13, 2017

London tech culture; seaside chic

I recently wrote this post asking if Folkestone might be poised to become a new tech hub. Because, I’d really like to build a development team in Folkestone. I’ve had a great response; thank you to everyone who has been in touch. …

Software Development

2 min read

London tech culture; seaside chic
London tech culture; seaside chic
Software Development

2 min read


Sep 27, 2017

Is Folkestone poised to become a new tech hub?

If you are a growing business looking to scale your engineering team in London, you’re up against some pretty strong competition. What can you offer to attract increasingly illusive senior developers? I haven’t seen ‘personal barista’ advertised as a benefit yet; but it wouldn’t surprise me. Remote working is on…

Folkestone

3 min read

Is Folkestone poised to become a new tech hub?
Is Folkestone poised to become a new tech hub?
Folkestone

3 min read


Oct 1, 2016

Rationalizing Americanisms

Be honest, we are all slightly pedantic aren’t we? It’s part of being a good programmer. …

Ruby

2 min read

Ruby

2 min read


Dec 2, 2015

Avoid abusing service objects

At Makers Academy we like service objects. They are a handy way to refactor code out of fat models and fat controllers and into easy-to-call components. However, they are also easy to abuse and should be created with discretion. One of the dangers with service objects is that they are…

Ruby On Rails

3 min read

Avoid abusing service objects
Avoid abusing service objects
Ruby On Rails

3 min read


Sep 3, 2015

Musings on Service Objects

Recently I’ve been considering Service Objects, in particular how they might be named and whether they should have class methods or not. There seem to be two popular approaches to naming, which are well defined in the posts linked to in the following sections, with some of my own thoughts…

Ruby

4 min read

Ruby

4 min read


Jun 9, 2015

Card Wall is not Kanban

Ever been in a meeting or discussing a project when someone has said…? What we need is a Kanban board! I often see project teams standing at whiteboards covered in sticky-notes, deep in stand-up meetings, discussing this or that feature. They have columns for in progress, backlog, live or similar…

Agile

3 min read

Agile

3 min read

Ben Forrest

Ben Forrest

23 Followers

Tech Lead at Oyster

Following
  • Dave Gutteridge

    Dave Gutteridge

  • Kent Beck

    Kent Beck

  • Kat Crichton-Seager

    Kat Crichton-Seager

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech