331
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
[-] FooBarrington@lemmy.world 31 points 5 hours ago
try {
    operation();
} catch {
    // nice weather, eh?
}
[-] MajorHavoc@programming.dev 1 points 2 hours ago

Thanks. I hate it.

[-] Karyoplasma@discuss.tchncs.de 4 points 3 hours ago* (last edited 3 hours 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

[-] __ghost__@lemmy.ml 1 points 2 hours ago
[-] Traister101@lemmy.today 1 points 1 hour ago

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

[-] nichtburningturtle@feddit.org 32 points 6 hours ago

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

[-] cbazero@programming.dev 26 points 7 hours ago
[-] limer@lemmy.dbzer0.com 4 points 3 hours ago

Sometimes it’s better to hope while closing eyes

[-] Isoprenoid@programming.dev 9 points 5 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

-ErrorActionPreference SilentlyContinue

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

Programmer Humor

19987 readers
1478 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