re: Is “Defensive Programming” actually healthy? VIEW POST

re: Interesting. I tried to find an article about Python and “letting the exceptions fly” but I couldn’t find anything. One should always choose the b...

I think the last time I heard it about was in a video or so, but the correct idiom is "Easier to ask for forgiveness than permission"

This video explains it in a nice way: youtube.com/watch?v=x3v9zMX1s4s
And this article summarizes things: devblogs.microsoft.com/python/idio...

Sometimes that might be throwing/catching an error, and other times it might mean preventing it with the type system

I can totally relate after I saw how TypeScript goes (I never used it before, just the old normal JS).

Code of Conduct Report abuse