Type something to search...

Blog

Type Hints in Python: A Practical Guide to Static Typing

Type Hints in Python: A Practical Guide to Static Typing

Python is dynamically typed, and that's a big part of why it's pleasant to write. You don't declare types, you just use values. The downside shows up

Continue Reading
Exception Groups and except* in Python

Exception Groups and except* in Python

For most of Python's history, an exception meant exactly one error. That model breaks down in a few situations that are increasingly common: three co

Continue Reading
Creating Custom Exceptions in Python for Clearer Error Handling

Creating Custom Exceptions in Python for Clearer Error Handling

Python's built-in exceptions cover a lot of ground. ValueError, KeyError, TypeError, and OSError describe most low-level failures well. But o

Continue Reading
Building a URL Shortener with Node.js and MongoDB

Building a URL Shortener with Node.js and MongoDB

A URL shortener looks like a weekend toy: take a long URL, hand back a short code, redirect when someone visits it. But once you think about it for m

Continue Reading
How to Create Tabs Using Only CSS

How to Create Tabs Using Only CSS

Tabs are a tidy way to put several related panels of content in the same space: product descriptions and reviews, code samples in different languages

Continue Reading
Understanding CSS Units: px, em, rem, vw, vh, and More

Understanding CSS Units: px, em, rem, vw, vh, and More

Every length in CSS comes with a unit, and the one you pick decides how that length behaves when things change. Will this padding grow when the user

Continue Reading