this post was submitted on 01 Aug 2025
147 points (96.8% liked)

Programmer Humor

25395 readers
1586 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Don't say anyway, say anyhow

you are viewing a single comment's thread
view the rest of the comments
[–] jubilationtcornpone@sh.itjust.works 12 points 1 day ago (2 children)
try
{
     execute.SomeMethod();
}
catch(Exception ex)
{}
[–] r00ty@kbin.life 1 points 4 hours ago

I've seen this in production code before. I might argue if you caught a very specific exception type that didn't matter it might be acceptable. Maybe. But just the overall Exception type... Recipe for disaster.

[–] kiri@ani.social 2 points 1 day ago* (last edited 1 day ago)