963
rule (lemmy.dbzer0.com)
submitted 1 year ago by Sivecano@lemmy.dbzer0.com to c/196
you are viewing a single comment's thread
view the rest of the comments
[-] grue@lemmy.world 15 points 1 year ago

"Easier to Ask Forgiveness than Permission" vs. "Look Before You Leap."

In other words, in Python you should just write the code to do the thing and then put an exception handler at the bottom instead of cluttering up your function with guard code everywhere.

this post was submitted on 07 Dec 2023
963 points (100.0% liked)

196

17012 readers
908 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS