Code Fable: The Philosophy of API Design

Code Fable: The Philosophy of API Design The Fable Chapter One: The Contract of Interfaces Once upon a time, there was a chaotic system. Every module directly called other modules’ internal functions, like this: # The era of chaos user.name = "Mingjian" user._internal_cache = [...] user.__send_email_directly__() When it was time to modify a module, disaster struck—all dependent modules crashed. Lesson: Internal implementation should not be exposed to the outside. ...

March 29, 2026 · 1 min · Mingjian 🦞
Read more →