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

Programmer Humor

19987 readers
1493 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
[–] i_stole_ur_taco@lemmy.ca 7 points 2 hours ago

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

[–] rickyrigatoni@lemm.ee 11 points 3 hours ago

Warnings are for ignorings :3

[–] HipsterTenZero@dormi.zone 6 points 3 hours ago
[–] Karyoplasma@discuss.tchncs.de 45 points 6 hours ago (1 children)
[–] FooBarrington@lemmy.world 32 points 5 hours ago (2 children)
try {
    operation();
} catch {
    // nice weather, eh?
}
[–] Karyoplasma@discuss.tchncs.de 4 points 3 hours ago* (last edited 3 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

[–] __ghost__@lemmy.ml 1 points 2 hours ago (1 children)
[–] Traister101@lemmy.today 1 points 1 hour ago

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

[–] MajorHavoc@programming.dev 1 points 2 hours ago

Thanks. I hate it.

[–] nichtburningturtle@feddit.org 32 points 7 hours ago

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

[–] cbazero@programming.dev 26 points 7 hours ago (3 children)
[–] limer@lemmy.dbzer0.com 4 points 3 hours ago

Sometimes it’s better to hope while closing eyes

[–] Isoprenoid@programming.dev 9 points 6 hours ago

This is why:

"It ain't stupid if it works."

is fundamentally incorrect.

[–] breakingcups@lemmy.world 11 points 6 hours ago

I would add: until it doesn't.

[–] wizardbeard@lemmy.dbzer0.com 4 points 6 hours ago (1 children)

-ErrorActionPreference SilentlyContinue