html & bacon

The ramblings of a front-end dev

integration testing an api with mocha and superagent

This seemed to be the week people showed me testing triangles. If you’ve never seen one then I’ve included one below. This doesn’t give you the full range of tests but it does give you an overview. The top of the triangle can includes acceptance test...

Read more about integration testing an api with mocha and superagent

nunjucks for govuk elements – moving to consumable code

Some time ago I shared nunjucks macros (git) based around a couple of services I had built. These are a bit haphazard and had no testing around them at a component level (though they were well tested in a service.). They were also bloated due to neve...

Read more about nunjucks for govuk elements – moving to consumable code

getting started with a raspberry pi and node.js

Hardware hacking always sounds really fun, but I found it quite difficult to get into. I already had an arduino sat doing very little, I was then given a raspberry pi as a gift. These are a great credit-card sized computer, that can run many programm...

Read more about getting started with a raspberry pi and node.js

​links from Rise and Design – Service design

be curious. ask why. measure. fail small. early ugly often Some links Service Design Toolkit – Improve the quality of your service with this hands-on toolkit Design Kit: The Human-Centered Design Toolkit | ideo.com OpenIDEO Development Impact and You...

Read more about ​links from Rise and Design – Service design

January 2017 goals

I've never been good with "New Year's resolution", so I started to set monthly goals, more measurable and achievable. Finish Wes Bos's React for Beginners, and build something using React. Use more es6 in my production code Write 4 blogs St...

Read more about January 2017 goals

decoupling and abstraction

A couple things generally strike me when I approach a codebase - abstraction decoupling Abstraction - will allow code reuse in many parts of an application or difference services. Decoupling will remove dependencies between blocks of code. Abstractio...

Read more about decoupling and abstraction