949
you are viewing a single comment's thread
view the rest of the comments
[-] konalt@lemmy.world 29 points 2 months ago* (last edited 2 months ago)
// 🚨 Log error to console
console.error(error);
[-] Thorry@feddit.org 24 points 2 months ago* (last edited 2 months ago)

// 🤦 You are totally right! Simply logging the 🚨 error to the console isn't proper error handling. 🫣 We now throw an exception instead. throw new ApplicationException(error);

[-] tauonite@lemmy.world 5 points 2 months ago* (last edited 2 months ago)

I once tried vibe coding a web app using GitHub Copilot. That motherfucker wrapped every single endpoint with

try:
    ...
except Exception:
    return "An error occurred"

What the fuck is wrong with you Copilot? This piece of shit trying to hide all the errors. If I don't know there are errors then there aren't errors. Apparently

[-] ChickenLadyLovesLife@lemmy.world 3 points 2 months ago* (last edited 2 months ago)

I wish to god Visual Basic was still around so Copilot et. al. could get infected with ON ERROR RESUME NEXT statements. Or its under-appreciated but vastly more horrific cousin ON ERROR RESUME.

[-] pinball_wizard@lemmy.zip 2 points 2 months ago* (last edited 2 months ago)

I might make that my first coding project after I retire. I bet I can code up a global import that implements "ON ERROR RESUME" in a couple of modern languages...

this post was submitted on 18 Dec 2025
949 points (100.0% liked)

Programmer Humor

29921 readers
474 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