Andy Peterson

Naming Things Is Hard


6 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


4 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


2 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


24 days 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...