Jason NovingerM to [email protected] • 4 days agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square52fedilinkarrow-up163arrow-down14cross-posted to: [email protected]
arrow-up159arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason NovingerM to [email protected] • 4 days agomessage-square52fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink2•2 days agoOh 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.
minus-square🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕕𝕚𝕝𝕖linkfedilinkEnglish1•2 days agoUr function args if fucked up should always throw an error that’s the entire point of python type hints
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.
Ur function args if fucked up should always throw an error that’s the entire point of python type hints