Blog

object-fit and object-position: Controlling Images Like a Pro
Every content-driven site eventually hits the same problem. The design calls for a neat grid of identical thumbnails, but the images coming out of th
Continue Reading
BEM Naming Convention: Writing Maintainable CSS Class Names
Naming things is famously one of the hard problems in programming, and CSS makes it harder than most languages. Every class name lives in one global
Continue Reading
How to Respect prefers-reduced-motion for Accessible Animations
Animation is one of the best tools we have for making an interface feel responsive and alive. A card that lifts on hover, a menu that slides into pla
Continue Reading
Regular Expression Queries in MongoDB: Power and Pitfalls
Sooner or later, an exact match isn't enough. You need every SKU that starts with LMP-, every email at a particular domain, or every log line that
Continue Reading
TTL Indexes in MongoDB: Automatically Expiring Old Data
A lot of data has a shelf life. Login sessions should vanish after a day of inactivity. Password reset tokens should be useless after an hour. Rate l
Continue Reading
MongoDB Time Series Collections: Storing IoT and Metrics Data Efficiently
Measurements arrive fast and never stop. A fleet of 5,000 sensors reporting every ten seconds produces over 43 million readings a day. Store each rea
Continue Reading