Jason Novinger@programming.devM to Python@programming.dev · 5 days agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square47fedilinkarrow-up11arrow-down10cross-posted to: technology@lemmy.world
arrow-up11arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason Novinger@programming.devM to Python@programming.dev · 5 days agomessage-square47fedilinkcross-posted to: technology@lemmy.world
minus-squarelogging_strict@programming.devlinkfedilinkarrow-up0·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.
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.