Type something to search...

Blog

How to Upgrade MongoDB Versions Safely in Production

How to Upgrade MongoDB Versions Safely in Production

Database upgrades have a way of getting postponed. The current version works, the upgrade feels risky, and there's always something more urgent. Then

Continue Reading
Working with Arrays in MongoDB: Queries, Updates, and $elemMatch

Working with Arrays in MongoDB: Queries, Updates, and $elemMatch

Arrays are one of the best reasons to use MongoDB. Tags, line items, addresses, sizes in stock: data that would need a join table in SQL can live rig

Continue Reading
Python Strings Deep Dive: Methods Every Developer Should Know

Python Strings Deep Dive: Methods Every Developer Should Know

Python's str type has around 47 methods. Most developers use five or six of them regularly and reach for regular expressions or hand-written loops

Continue Reading
Slicing in Python: Start, Stop, Step, and Negative Indices

Slicing in Python: Start, Stop, Step, and Negative Indices

Slicing is one of the first things you learn in Python and one of the last things you fully master. items[1:3] is easy. items[-1:-4:-1], `items[4

Continue Reading
Python's enumerate, zip, and range: Looping Like a Pro

Python's enumerate, zip, and range: Looping Like a Pro

If you came to Python from C, Java, or JavaScript, your first loops probably looked like for i in range(len(items)): followed by items[i] everywh

Continue Reading
Lambda Functions in Python: Uses, Limits, and Better Alternatives

Lambda Functions in Python: Uses, Limits, and Better Alternatives

Python's lambda keyword lets you create a small function inline, without giving it a name. It's handy when an API wants a function and the logic fi

Continue Reading