Redowan's Reflections — Page 13

Recent writing

Longer articles, short notes, and things I'll probably need to look up again.

Browse the archive
Pre-allocated lists in Python

Understand CPython list memory allocation: how lists store pointer references, grow dynamically, and when pre-allocation with [None]*n helps.

In favor of sentence case

Embracing sentence case over title case in technical writing eliminates capitalization ambiguity and improves readability.

Self type in Python

Use Python's Self type from PEP 673 to annotate methods returning class instances, eliminating complex forward references and TypeVars.

Search and navigate

Navigate