Richard Bagshaw

Freelance Web Developer - Tel 0115 923 1500


What keeps me motivated?

I think the answer most people would expect to hear is money right? I mean, we go to work for 8+ hours each day to earn money so we can do stuff with the remainder of our lives, so surely the primary motivator is money?

Surprisingly, I don't think this is the case, don't get me wrong - I'm not arrogant enough to sit here and write how "money isn't a problem", I totally understand, just like millions of others I have bills to pay, mouths to feed and my fair share of debt, sadly this

Continue Reading

Back to Freelancing

It's been six months or so since I have done any freelance work, however over the course of the next month or so I am looking to pick up some interesting projects and get the ball rolling again.

I think this time around I am looking at mainly PHP based projects with a little front-end work as well, it's exciting times (and scary) but I can't wait to get started.

My plan is to also dedicate a lot more time to this blog as I have left it a little unkempt since I have been so busy, but alas! no

Continue Reading


As web developers, I think it's fair to say we have all experienced our CSS files becoming big monolithic unruly monsters. Tools such as Sass and Less have personally helped me organise and structure my CSS in a much cleaner way.

BEM [block, element, modifier]

BEM is a way of naming things in your CSS files to provide meaning to other developers or your future self.

As an example of what BEM looks like, let's take a look at the three elements.

.component {
    /* represents a componenet */

.component__element {
    /* represents a small part that is used to make a component */


Continue Reading


Last year I was sat in a hotel lobby waiting for a taxi to pick me up and take me to the airport to fly back from Laracon EU. My head was full of all sorts of exciting new things I had seen over the last few days, and I wanted to crack open a new book while sat around bored in the airport.

I asked on Twitter for books on refactoring code or dealing with a legacy codebase and a couple of times I came across a book by Martin Fowler called “Refactoring”. In this book, Martin goes through

Continue Reading

Angular JS

Angular JS

For a while now I have been trying to figure out which frontend framework I want to focus on, in the past I have used Backbone JS, with Require JS and I have also dipped my toe into EmberJS.

In the end I decided to stick with Angular for the following reasons, I do still have some concerns around version 2 of angular, but at least for the next few years I think I will be sticking with what I know best.

  1. I have already developed quite a few application in angular js, so as a business, building

Continue Reading

StackPHP Middleware

StackPHP Middleware

I've written about middleware before in a previous post in a Laravel context. Middleware isn't something that exclusive to any particular framework and it has infact been around for a long time. As a freelancer I frequently get to work on really interesting stuff, and recently I have been building a super lightweight custom framework based on illuminate components, one of the requirements was to build in an easy to use middleware component based on StackPHP

The Decorator Pattern

Before we can really talk about middleware and StackPHP we need to understand the decorator pattern, there have been

Continue Reading