How to separate your business logic with abstraction layers.

Following on from my previous post, Making Terraform Work a Bit Harder, another important factor in making any code scalable is to create abstraction layers in your code to reduce risks associated with change, and to just make life easier with layers that limits the scope of knowledge of implementation. This is just as important with Terraform as it is for any ‘regular’ programming language. …


Lots of people use Terraform but they only scratch the surface of what it can do. I thought I would explore some of Terraforms capabilities to keep your code ‘DRY’.

First of all consider this little piece of Terraform HCL

resource "aws_security_group" "basic_sg" {
name = "my_security_group"
description = "just for me, nobody else"
vpc_id = "vpc-0a1b2c3de45f12345"

ingress {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = [10.11.12.13/20]
}

egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}

tags = {
Name = "my_security_group"
}
}

Most people who have done…


It’s heartening to see the positivity coming from people learning to code at the bootcamps I follow, people who had previously considered coding to be reserved for the domain of ‘experts’, seeing the fruits of their efforts come to life is so encouraging. Just about anyone can learn to code, at least anyone who wants to learn. Diversity in software engineering teams is so very important. Obviously diversity is important everywhere but that’s too big a subject for this post, so I’m just focusing on building software. …


This piece was prompted by my response to this post by Deborah Copaken. It got me thinking about how I’m responding to the current rush of sexual predator stories.

I like to think I’m respectful to everyone, not just women. It’s just that at the moment I find myself questioning every interaction I have with female colleagues. I know I’m over reacting, well, probably. Female colleagues often seek me out in the communal areas to say hello and chat so I must be doing something right, maybe. This maelstrom of abuse stories, claims and counter claims has just about the…


I’ve been a software engineer for over 20 years now. Someone asked me the other day whether the job had changed much and it started me thinking.

When I started, the languages of choice were C and to a lesser extent C++. Writing in these languages at the time, by todays standards was hard. Coding was done using plain text editors, if you were lucky you had a Windows or an X Windows editor, if you were not so lucky you had a VT100 with something like the vi editor. You had to either remember or lookup all the commands…


I don’t live in Manchester, you could count on your fingers the number of times that I’ve been there but that doesn’t really matter. It could have been any one of a number of UK cities, Glasgow, Leeds, Nottingham, Bristol, the list goes on. We all feel their pain because it could so easily have been us, it doesn’t take much to imagine ourselves in the shoes of the people who’s lives have been torn apart.

Imagine standing waiting for you child to come out of the concert, you spot them coming out only for you then to see them…


I’ve been asked numerous times over the years, usually by parents whose children want to learn, what is the best way to get into a job as a Software Engineer.

Everyone in this job has an opinion on how best to get started, blogs and forums are full of threads discussing it; the merits of this language over that one, teaching yourself versus formal training. This is my view on the subject.

Unlike other ‘professional’ disciplines like law or accountancy that have a well defined career path, the road to becoming a software engineer isn’t a road at all, it’s…


I was talking to a Polish colleague on the morning of the announcement of the result. I asked her what she thought of what was happening, she was concerned about being able to afford her mortgage and whether the interest rates would go up. This surprised me, I expected her to be worried about being allowed to stay, things like that that. As our conversation continued she expressed bemusement at the way the UK treated EU immigrants. She had a part time job as a translator for local government, one of several people doing that job. She added that if…


I was quite late to the Docker party, I only started working with it about 18 months ago. At the time it I wasn’t impressed

‘Really? Another Technology Fad I have to learn only for it to be dropped next year?’

I can’t say I was overly enamoured at the prospect, when I had read the initial ‘welcome sales pitch’ writeup I still wasn’t buying it

It’s just a VM only smaller, what’s the point?

I hadn’t actually understood what it was about at all, I had a very cynical stance, in part due to the constant stream of new…


I was firmly in the ‘stay in’ camp until a week ago. That’s when my wife found out that I was planning to vote that way. She looked at me all horrified and asked why?

I explained the standard reasons where the vast amount of benefit goes unreported whilst we just hear about the tiny fraction of the bad.

That’s when she explained her reasons for wanting to leave.

“The only reasons to stay are about business and money” I started to pay a lot more attention to what she was saying at this point.

Mr Galoot

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store