Warnings are for ignorings :3
this post was submitted on 17 Jan 2025
263 points (98.2% liked)
Programmer Humor
19980 readers
2181 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
if (error) {
continue;
}
try {
operation();
} catch {
// nice weather, eh?
}
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
If I can't see it, is it really there?
If it works, it works
Sometimes it’s better to hope while closing eyes
This is why:
"It ain't stupid if it works."
is fundamentally incorrect.
I would add: until it doesn't.
-ErrorActionPreference SilentlyContinue