this post was submitted on 17 Jan 2025
267 points (98.5% liked)

Programmer Humor

19987 readers
434 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
 
top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 34 minutes ago
[–] [email protected] 3 points 42 minutes ago

Warnings are for ignorings :3

[–] [email protected] 34 points 3 hours ago (1 children)
[–] [email protected] 20 points 2 hours ago (1 children)
try {
    operation();
} catch {
    // nice weather, eh?
}
[–] [email protected] 1 points 50 minutes ago* (last edited 41 minutes ago)

Starting with Java 21 (I think), they've introduced ignored variables, so you can now actually do this:

try {
    operation();
} catch (Exception _) {
    // nice weather, eh?
}

Edit: forgot that this is about JS lel

[–] [email protected] 2 points 3 hours ago

-ErrorActionPreference SilentlyContinue

[–] [email protected] 28 points 4 hours ago

If I can't see it, is it really there?

[–] [email protected] 21 points 4 hours ago (3 children)
[–] [email protected] 3 points 41 minutes ago

Sometimes it’s better to hope while closing eyes

[–] [email protected] 5 points 2 hours ago

This is why:

"It ain't stupid if it works."

is fundamentally incorrect.

[–] [email protected] 8 points 3 hours ago

I would add: until it doesn't.