What is Nostr?
Matthew Martin β˜‘ βœ…πŸ“› /
npub1anj…k3c3
2024-08-18 17:06:41

Matthew Martin β˜‘ βœ…πŸ“› on Nostr: Someone force a bot to read all the text on the internet and now it thinks error ...

Someone force a bot to read all the text on the internet and now it thinks error handling in python is:

- convert it to a behavior that isn't an exception, e.g. a print statement (Chatty `pass`)
- rarely:log it and reraise it
- rarely:log it and replace with a different `Exception`

I can tell because that is how it writes methods and tests for methods.
How else could it be?
- Exceptions as control-of-flow, maybe like this, with a distinction between panic & recoverable

https://www.youtube.com/watch?v=Z3j-jWX7B4M
Author Public Key
npub1anj34n7xep997cj6w4d7mysld6kx48d2d7ggzuz8jqwmuq332ghs5tk3c3