Andy Peterson

Naming Things Is Hard


12 months ago by Andy Peterson on Atomic Spin.
When making software, you have to name a lot of things. There are functions, classes, numbers, data models, etc., and they all need meaningful names to...

Using State Tables for Testing


10 months ago by Andy Peterson on Atomic Spin.
Tests can benefit a project in many different ways. For example, they help ensure that the software behaves as expected. They also help document that functionality...

Mocking in JavaScript Unit Tests Using Sinon.JS


8 months ago by Andy Peterson on Atomic Spin.
Lately, I’ve been using Sinon.JS for mocking in my unit tests. By using mocks for dependencies inside functions, I can write unit tests that are resilient...

Building a Family Tree With GraphQL – Part 1: Creating a Simple GraphQL API


7 months ago by Andy Peterson on Atomic Spin.
Over the past year, I’ve been working with GraphQL to build APIs. GraphQL is a query language that allows for flexible endpoints for servers, giving consumers...

Building a Family Tree with GraphQL – Part 2: Adding New Resolvers


5 months ago by Andy Peterson on Atomic Spin.
In my last post, I described how you can build flexible APIs with GraphQL, using a family tree API as my demonstration. The implementation of the API was...