Type something to search...

Blog

Python Dunder Methods: Making Your Classes Feel Built-In

Python Dunder Methods: Making Your Classes Feel Built-In

Why does len(my_list) work, but len(my_object) raises a TypeError? Why can you add two numbers with + and compare two strings with <, but y

Continue Reading
Inheritance and super() in Python: How Method Resolution Order Works

Inheritance and super() in Python: How Method Resolution Order Works

Inheritance looks simple when there's one parent class: the child gets the parent's methods, overrides a few, and calls super() to reach the origin

Continue Reading
Classes and Objects in Python: A Practical Introduction to OOP

Classes and Objects in Python: A Practical Introduction to OOP

You've been using objects since your first line of Python. A string is an object with methods like .upper(). A list is an object you .append() to

Continue Reading
Running Shell Commands from Python with subprocess

Running Shell Commands from Python with subprocess

Sooner or later a Python script needs to call another program: run git to find the current commit, invoke ffmpeg to convert a video, call `pg_dum

Continue Reading
MongoDB vs. DynamoDB: A Practical Comparison

MongoDB vs. DynamoDB: A Practical Comparison

If you're building on AWS and need a NoSQL database, you'll quickly narrow the choice to two options: Amazon DynamoDB, the fully managed key-valu

Continue Reading
CSS-in-JS vs. CSS Modules: Choosing a Styling Strategy

CSS-in-JS vs. CSS Modules: Choosing a Styling Strategy

Every component-based project eventually has to answer the same question: where do the styles live, and how do you stop one component's CSS from leak

Continue Reading