this post was submitted on 01 Nov 2024
628 points (97.7% liked)
People Twitter
5226 readers
2316 users here now
People tweeting stuff. We allow tweets from anyone.
RULES:
- Mark NSFW content.
- No doxxing people.
- Must be a tweet or similar
- No bullying or international politcs
- Be excellent to each other.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Damn. Need to wrap that whole bar in a try: except: that just silently fails. Solves all the issues and you go to another bar.
Exception:
Spits out entire codebase
Customer: Can i use the bathroom?
Bartender: Ehhhh our bathroom is not available at the moment.
Customer: What?
Bartender: Not. Available...
def bathroom(customer): return False
“But if it silently fails then we won’t know there’s a problem until a customer reports it and we go looking for it!”
Yes, and that could be weeks before it becomes my problem again!
And weeks later, after that change has been rolled out to all the bars, the engineer now has to travel to every single one of them to fix it.
In my experience silently failing just leaves you standing there waiting for your beer forever, or until someone reboots the universe.