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

Programmer Humor

19990 readers
1441 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 16 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 hour ago

Warnings? We’ll come back and address those later. Maybe once we’re feature complete. Or maybe shortly after that.

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

Warnings are for ignorings :3

[–] [email protected] 6 points 2 hours ago
[–] [email protected] 44 points 5 hours ago (1 children)
[–] [email protected] 29 points 4 hours ago (2 children)
try {
    operation();
} catch {
    // nice weather, eh?
}
[–] [email protected] 1 points 1 hour ago

Thanks. I hate it.

[–] [email protected] 4 points 2 hours ago* (last edited 2 hours ago) (1 children)

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] 1 points 1 hour ago (1 children)
[–] [email protected] 1 points 16 minutes ago

If your joking yes, if your not Java and Java Script are seperate things.

[–] [email protected] 32 points 6 hours ago

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

[–] [email protected] 26 points 6 hours ago (3 children)
[–] [email protected] 4 points 2 hours ago

Sometimes it’s better to hope while closing eyes

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

This is why:

"It ain't stupid if it works."

is fundamentally incorrect.

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

I would add: until it doesn't.

[–] [email protected] 4 points 5 hours ago (1 children)

-ErrorActionPreference SilentlyContinue

[–] [email protected] 1 points 1 hour ago