Odinkirk@lemmygrad.mltoProgrammer Humor@lemmy.ml•This is gonna hurt if you're a developer, you've been warned.
3·
2 months agoThis is like Dalinar and the fighting master from Stormlight Archive.
This is like Dalinar and the fighting master from Stormlight Archive.
That’s why you set the alternate/exit cases as individual if statements before whatever was going to be inside the original if block.
To me too long to learn that.
If it’s not available as an Azure service it won’t be used (except for uptime kuma).
What Clive Barker movie do you live in?
Yeah. Commits going right to prod makes my skin crawl.
Five gets you ten that Reddit will purge the moderators, get lackeys into the mod positions, do a content prune to get rid of NSFW-ish posts and comments, then try to bring it back as “business as usual”.
Reddit has already demonstrated that they have no problem breaking their own rules.
You can set up a global exception handler in some frameworks. By having multiple (not a crazy amount) of exceptions, you can set up logic for how to handle that kind of error. Then you can just throw the exception instead of writing individual catch blocks.
This is especially helpful in things like a REST API where user input can cause all kinds of fun, let alone network issues, problems with your data source, etc.