Paul Cowan

  Contract software developer.


23 Stories by Paul Cowan

Testing the React Router useNavigate Hook with React Testing Library

Learn about unit testing using the React Testing Library and the useNavigate Hook to simplify the process of making components route-aware.
2 5 min read

A complete guide to const assertions in TypeScript

const assertions are a powerful TypeScript tool that create more type-safe code while reducing boilerplate.
5 6 min read

Write fewer tests by creating better TypeScript types

Learn how to write better TypeScript types and avoid maintenance and unnecessary changes to code as your app adapts to evolving requirements.
1 6 min read

When will Safari finally get it together?

Safari and WebKit have long prevented developer from actually implementing modern features in apps and PWAs. Has 15.4 finally changed things?
2 4 min read

Why scrum has become irrelevant

Scrum has destroyed the central tenet of agile — people over process — thanks to bad management and the rise of the certified scrum...
32 3 min read

React Hooks: The good, the bad, and the ugly

The pros of Hooks outweigh the cons, but it's not a landslide victory. Read all about the good, the bad, and the ugly of...
0 3 min read

Understanding common frustrations with React Hooks

While the response to Hooks has been overwhelmingly positive, we are going to look at some of the not so popular parts of React...
90 9 min read

Boost your productivity with TypeScript project references

If you have a TypeScript codebase in a monorepo that is not using TypeScript project references then you are missing out on a productivity...
2 3 min read

JavaScript generators: The superior async/await

It's time for the revolution that never happened.
6 4 min read

Make any SVG responsive with this React component

If you are putting out digital content, there is a high chance that your audience will view it on a mobile device. For text...
0 4 min read

Cypress vs. Selenium: Why Cypress is the better option

Selenium tests are insanely challenging to write and often hard to maintain. Enter:
45 8 min read

Developer frustrations in 2020

Things do not get any easier, they just get different.
2 3 min read