This site runs best with JavaScript enabled.

How to know what to test

Knowing how to test is great and important. I've created a LOT of content that teaches people the fundamentals of testing, how to configure tools, how to write tests for specific scenarios, and so on. But knowing how to write tests is only half the battle to achieve confidence in your application…

Read →

AHA Testing 💡

The AHA Programming Principle stands for "Avoid Hasty Abstraction." I have specific feelings about how this applies to writing maintainable tests. Most of the tests that I've seen in the wild have been wildly on one side of the spectrum of abstraction: ANA (Absolutely No Abstraction), or…

Read →

AHA Programming 💡

DRY DRY (an acronym for "Don't Repeat Yourself") , is an old software principle that Wikipedia sums up like this: Every piece of knowledge must have a single, unambiguous, authoritative representation within a system This is generally a good practice that I typically subscribe to (though less…

Read →

The State Reducer Pattern with React Hooks

Some History About a year ago, I developed a new pattern for enhancing your React components called the state reducer pattern . I used it in downshift to enable an awesome API for people who wanted to make changes to how downshift updates state internally. If you're unfamiliar with downshift…

Read →

Super simple start to serverless

This last little while I've been doing a fair amount of work on kentcdodds.com . One page that I've been working on is the contact page where you can request enterprise training , schedule an hour of my time for consulting , or even leave your own testimonial of my work (I'd love it if you…

Read →

How to get started with programming

Programming computers is amazing. There are so many things you can accomplish with technology these days and being able to control what computers, phones, and IoT devices do enables you to accomplish so much more. There's no shortage of ideas of the things that we can accomplish with technology…

Read →

How to Enable React Strict Mode

In January 2018, Brian Vaughn added <React.StrictMode /> . Here's how to start using it in your app today: Ok, so what does this do? Go ahead and give it a try in your app and see what happens. Don't worry, I'll wait... What happens will be different for everyone, but here's an example of what…

Read →