Behind the Underscores EP04: Arithmetic Methods

PROGRAMMING

|

May 13, 2025

Learn how to use Python’s arithmetic magic methods like __add__, __sub__, __mul__, and more to make your classes behave like numbers.

Behind the Underscores EP03: String Representation Methods

PROGRAMMING

|

May 12, 2025

Discover why Python's __str__, __repr__, and __format__ methods are more than just fancy print tricks. Learn how they impact debugging, logging, testing, and even user interfaces with real-world examples and hidden tips that most developers overlook.

Behind the Underscores EP02: Object Initialization and Construction Methods

PROGRAMMING

|

May 11, 2025

Explore the advanced roles of __new__, __init__, and __del__ in Python. Learn when to use each, how they impact object lifecycle, and how to apply them in real-world scenarios like Singletons and immutable types.

Behind the Underscores EP01: Understanding Python’s Special Methods Conceptually

PROGRAMMING

|

May 10, 2025

We’re starting the Behind The Underscores series by looking at the big picture, where we’ll examine the private methods of Python classes in depth.

The Danger of Overusing is Instead of == in Python

PROGRAMMING

|

May 09, 2025

Learn why using is instead of == in Python can cause unexpected bugs. This post explains the difference and shows when each should be used.