60
you are viewing a single comment's thread
view the rest of the comments
[-] logging_strict@programming.dev 2 points 3 days ago

Oh no a stray None! Take cover ...

Robust codebase should never fail from a stray None

Chaos testing is specifically geared towards bullet proofing code against unexpected param types including None.

The only exception is for private support function for type specific checking functions. Where it's obviously only for one type ever.

We live in clownworld, i'm a clown and keep the company of shit throwing monkeys.

[-] muntedcrocodile@lemm.ee 1 points 3 days ago

Ur function args if fucked up should always throw an error that's the entire point of python type hints

[-] logging_strict@programming.dev 1 points 21 minutes ago

type hints are static, not necessarily runtime.

A chaos monkey throws everything at everything to see what breaks.

That won't be caught by perfect type hints, which is merely one tool in the toolbox.

and when things break, often hear WAD, works as designed. Or some other nonsense excuse.

this post was submitted on 24 Apr 2025
60 points (94.1% liked)

Python

7049 readers
32 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS