Blog

Iterators and the Iterator Protocol in Python
A for loop in Python works on lists, strings, dictionaries, files, database cursors, range objects, and anything else that knows how to hand out
Continue Reading
Closures in Python: How Inner Functions Remember Their Environment
Here's something that looks like it shouldn't work. A function creates a local variable, defines an inner function that uses it, and returns the inne
Continue Reading
How to Implement Pagination in MongoDB: Skip/Limit vs. Range-Based
Almost every application that lists things eventually needs pagination. A product catalog, an activity feed, an admin table of orders: none of them c
Continue Reading
Importing and Exporting Data with mongoimport and mongoexport
Some data tasks don't deserve a script. The marketing team sends a CSV of 40,000 leads to load into a collection. A partner wants last month's orders
Continue Reading
CSS Transforms in 3D: Building a Flip Card Effect
Most CSS transforms you write are flat: translate() to nudge, scale() to grow, rotate() to spin. But CSS also has a full 3D transform system, w
Continue Reading
Common MongoDB Mistakes Developers Make and How to Avoid Them
MongoDB is easy to start with. You install a driver, call insertOne, and you have a working database in minutes. That low barrier is a strength, bu
Continue Reading