James

James @jsrn

About: web developer, rubyist, friend

Location:
Birmingham, United Kingdom
Joined:
Apr 23, 2017

James
articles - 22 total

Assertions of Truth in Ruby Tests

I used to write my assertions like this: assert user.active? refute user.inactive? Enter...

Learn More 0 1Jan 17 '21

The Surprising Case of `gets` in Ruby

gets is seen is basically every introductory Ruby tutorial, but they rarely tell the whole...

Learn More 1 1Jan 16 '21

Warning on long branch names with git hooks

My company does some cool stuff with our CI pipeline. When someone submits a merge request, we know...

Learn More 7 0Apr 1 '20

Finding A Method Declaration With Source Location

I recently had one of those moments where some code failed, but not in the way I expected it to. To...

Learn More 7 0Nov 30 '19

Modules, Macros, Metaprogramming and Magic

If you’ve used the Rails framework, you will probably recognise this: class Comment <...

Learn More 12 0Jun 5 '19

Book Review: It Doesn't Have To Be Crazy At Work

David Heinemeier Hansson and Jason Fried of Basecamp and Signal v. Noise lay out how they achieve...

Learn More 14 2Mar 9 '19

Lazy Loading Images For Your Digital Library

For books that spark joy, but still take up too much bleedin' space.

Learn More 14 4Mar 9 '19

I'm James, and I don't want to talk about myself.

I tried writing about myself and the things I want to see, but I couldn't really find anything I was...

Learn More 39 2Mar 7 '19

What’s Tripping Up Uglifier?

In production mode, Rails 4 uses the uglifier gem to compress your JavaScript code into something...

Learn More 12 4Mar 6 '19

Hand-holding Simulator

A silly and very simple hand-holding sim

Learn More 6 2Mar 4 '19

It’s Time For Link Pages

There are a few complaints that are often made about the internet by those of us who spend too much...

Learn More 6 2Feb 27 '19

Book Review: Refactoring UI

I recently bought myself a copy of Refactoring UI by Adam Wathan and Steve Schoger. I opted for the...

Learn More 4 0Feb 25 '19

What Are You Going To Do When AI Steals Your Job?

I am reliably informed that one day soon, programmers will be obsolete. All the hard work you've put...

Learn More 10 31Feb 21 '19

What Is The Worst Comment In Your Code?

We all have skeletons in our closets.

Learn More 35 17Jan 22 '19

Now THIS Is Podracing!

What was the first time you really felt your development accelerate?

Learn More 8 5Dec 19 '18

Notes From A Modestly Successful Open Source Project

About a week ago, I built this as an excuse to test out create-react-app. I was expecting to get a...

Learn More 23 1Nov 1 '18

You want HOW MANY years experience?!

A handy tool for tech recruiters who ask for fifteen years experience in technologies that have only existed for three months.

Learn More 186 38Oct 25 '18

Asking Better Questions

Advice for asking questions in a productive and unobtrusive way

Learn More 23 1Oct 20 '18

Continued Learning For Intermediate Developers

Where do you go to keep up to date?

Learn More 12 4Oct 18 '18

Working Out Of A Slump

The beginning of this year was awful for work. I just couldn’t get in to it. There were probably a...

Learn More 29 0Oct 23 '18

Web Development Is Great

I’ve been writing code in one form or another for several years now. Sometimes ...

Learn More 3 0Jan 25 '19

So You Want to Add a Feature?

Questions to ask before development begins

Learn More 7 0May 8 '17