Writing on software design, company building, and the aerospace industry.

All of my long-form thoughts on programming, leadership, product design, and more, collected in chronological order.

Is this field required? Good luck finding out

Schema-based validators like Yup and Zod are powerful tools used widely in modern frontend forms. They provide a declarative and consistent way to express validation logic. But what they don't provide - at least not easily - is a reliable way to answer a simple UI question: "Is this field required?"

Next.js middleware: A name that misleads?

Next.js middleware is a powerful feature that allows you to handle requests before they reach your application. However, the name "middleware" can be misleading and lead to confusion. In this article, we will explore the different types of middleware in Next.js and how they work.