Blog

CSS Best Practices for Clean, Maintainable Code
Writing CSS that works today is easy. Writing CSS that still makes sense in a year, after a redesign, three new team members, and a hundred feature r
Continue Reading
Testing MongoDB Code with mongodb-memory-server and Jest
There are two popular ways to test code that talks to MongoDB, and both have problems. You can mock the driver, which gives you fast tests that verif
Continue Reading
The Future of CSS: Upcoming Features to Watch
CSS is moving faster than it ever has. A few years ago, a new layout feature took the better part of a decade to go from proposal to something you co
Continue Reading
MongoDB Projection: Returning Only the Fields You Need
A user profile document might hold a name, an email, a password hash, notification settings, a list of saved addresses, a login history, and a few hu
Continue Reading
MongoDB Update Operators: $set, $inc, $push, $pull, and More
A common first attempt at updating data in MongoDB looks like this: fetch the document, change a field in application code, and write the whole thing
Continue Reading
Migrating a Next.js Project from the Pages Router to the App Router, Step by Step
Moving a real project from the Pages Router to the App Router is less scary than it looks, as long as you don't try to do it all at once. The app a
Continue Reading