06 Oct 2019

My take on doing 'Clean Architecture' in React (Part 1)
Friendship is magic? Wait till you see Dependency Inversion!

Clean Architecture

Clean Architecture, simplified.

I'm a huge fan of Robert C. Martin's work in general, and Clean Architecture in particular. I'm frequently on the lookout for how to apply it to the different system architectures and frameworks we work with.

Which modules should be decoupled? I think the rule is similar …

02 Oct 2019

On-Premise CloudWatch Metrics with AWS CLI
Who will watch the watchmen?

Have you tried AWS CLI?

CloudWatch is pretty cool, and looking at a metrics dashboard and setting up alarms is pretty badass—especially when you're not a full-time DevOps and don't have the time to worry about your monitoring solution in addition to the thing it's supposed to look after.

If you're running some of …

21 Sep 2019

A basic terrain generator in Go (Part 4)
Cliffs of Dover

In the last part, we added fancy output code, and our output looks like this now:

Output with colours

...which, if you've ever seen a map, isn't what terrain actually looks like. The terrain around peaks tend to be at a similar height, and there is rarely the random patchwork of heights we …

19 Sep 2019

A basic terrain generator in Go (Part 3)
Take a look at me now

In the last part, we refactored the code and added CLI flags. The output right now looks like this:

Compile and Output After Flags

It doesn't really give us a sense of what the terrain looks like, though. Let's change that.


Unicode has some nice characters that can help us here. The ones we're …

18 Sep 2019

A basic terrain generator in Go (Part 2)
But first, we gotta clean up this mess

In the last part, we explored how to set up what was basically a matrix and randomly assign elevation values to it. In this part, I wanted to explore how to deal with assigning values to the elements adjacent to the peaks, and how to display the map to users …

Built using Pelican.