Type something to search...

Blog

One-to-Many Relationships in MongoDB: Patterns and Trade-Offs

One-to-Many Relationships in MongoDB: Patterns and Trade-Offs

In a relational database, a one-to-many relationship has one answer: a foreign key on the "many" side, and a join when you need both. You normalize f

Continue Reading
Handling Dates and Time Zones Correctly in MongoDB

Handling Dates and Time Zones Correctly in MongoDB

Date bugs are some of the most frustrating bugs in software because they hide. Everything looks right in your local time zone, the tests pass on your

Continue Reading
How to Build Fluid Typography That Scales Across Every Screen

How to Build Fluid Typography That Scales Across Every Screen

Look at the stylesheet of almost any site built a few years ago, and you'll find something like this: a headline at 2rem, then 2.5rem at 768 pixe

Continue Reading
CSS Transitions vs. Animations: Key Differences and Use Cases

CSS Transitions vs. Animations: Key Differences and Use Cases

You want a button's background to fade when someone hovers over it. Do you write a transition or an animation? Most developers pick one out of ha

Continue Reading
Mongoose Schemas, Models, and Middleware: A Practical Guide

Mongoose Schemas, Models, and Middleware: A Practical Guide

Mongoose is easy to start with and surprisingly deep once you're in. Defining a schema and calling Model.find() takes five minutes. Understanding w

Continue Reading
How to Install MongoDB on Windows, macOS, and Linux

How to Install MongoDB on Windows, macOS, and Linux

Installing MongoDB used to be a single download that gave you the server, the shell, and a handful of command-line tools. That's no longer the case.

Continue Reading