Security Headers

Decided to do some security hardening of my blog as an exercise, thought I would share the results. I started with a big fat F :) Report from: securityheaders.io Content Security Policy Content security policy defines what resources your site can access, if you want details look at this, thats…

Tell Don't Ask

One of my favourite OO design philosophies is Tell Don't Ask (TDA), this is one of the best ways I have found to promote loose coupling, have clear intent within my code and not have leaky state between objects. The general principle is that you should only tell objects to…

Notes On Microservices

There has been a lot of talk about Microservice architectures recently and I have read quite a bit about them so thought I would share some of my notes on the subject. This article covers some basic concepts and aims to point out the important areas to consider before considering…

API Design Lessons

I have been responsible for the DeviantArt API for a while now and have learnt a lot about API design in the process, this post covers my top lessons from this project. 1. You Support Your Mistakes FOREVER! This was a hard lesson learnt. As soon as you release anything,…

Cool Things In PHP 7

There are a lot of cool things coming in PHP 7, so I thought I would do a quick rundown of some of the things I am most looking forward to. Performance PHP 7 promises to be the fastest PHP ever, this is a great bonus to all the nice…