Fergus In London

The musings of a man with a keyboard and an internet connection.

Data Transformations for APIs via Struct Composition in Golang

2019-03-11 8 min read Fergus

I enjoy writing Go. It lacks the magic and obfuscation present in other languages, whilst possessing an intuitive syntax that still allows the concise expression of complex ideas. It’s awesome.

What’s less awesome, unfortunately, is that the flexibility of the language often leads to it’s simplicity being overlooked; and this is no more apparent than in data transformation layers. If you find yourself regularly writing convulated transformers, then there’s a good chance that you’re not actually understanding the language properly.

And what’s the point in writing Go if you’re simply going to write Java/C#/PHP?

Continue reading

Utilising the Docker Engine API

2018-04-29 3 min read Fergus
Docker has cemented itself as a mainstream technology, not only for the development and deployment of web services, but also the isolation of Linux applications that need to be ran in a controlled or sandboxed environment. Whilst the docker CLI is brilliant, it can be difficult to expose this to custom utilities, or to present it’s output in a user friendly way - such as the way that Docker Swarm Visualizer does. Continue reading