Type something to search...

Blog

Text Search in MongoDB: Creating and Querying Text Indexes

Text Search in MongoDB: Creating and Querying Text Indexes

Your app needs a search box. The first version usually looks like find({ title: { $regex: userInput, $options: "i" } }), and for a few hundred docu

Continue Reading
CSS Resets vs. Normalize.css: Which Should You Use?

CSS Resets vs. Normalize.css: Which Should You Use?

Every browser ships with a default stylesheet. It's the reason an unstyled h1 is large and bold, a ul has bullets and indentation, and body has

Continue Reading
MongoDB vs. PostgreSQL: Choosing the Right Database for Your Project

MongoDB vs. PostgreSQL: Choosing the Right Database for Your Project

Ten years ago, the MongoDB vs. PostgreSQL debate was easy to caricature. MongoDB was the schemaless, eventually consistent newcomer; PostgreSQL was t

Continue Reading
Theming Websites with CSS Custom Properties

Theming Websites with CSS Custom Properties

Theming used to mean maintaining separate stylesheets. A "dark" stylesheet overrode every color in the "light" one, a "high contrast" version overrod

Continue Reading
Running MongoDB in Docker and Docker Compose

Running MongoDB in Docker and Docker Compose

Installing MongoDB directly on your laptop works, until you need a different version for another project, or a teammate's setup behaves differently f

Continue Reading
Margin Collapse in CSS: Why Your Spacing Behaves Strangely

Margin Collapse in CSS: Why Your Spacing Behaves Strangely

You give a heading margin-bottom: 20px and the paragraph after it margin-top: 30px. You'd expect 50px of space between them. The browser shows 30

Continue Reading