970
you are viewing a single comment's thread
view the rest of the comments
[-] konalt@lemmy.world 30 points 2 weeks ago* (last edited 2 weeks ago)
// 🚨 Log error to console
console.error(error);
[-] Thorry@feddit.org 25 points 2 weeks ago* (last edited 2 weeks 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 weeks ago* (last edited 2 weeks 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 weeks ago* (last edited 2 weeks 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 weeks ago* (last edited 2 weeks 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...

[-] bitjunkie@lemmy.world 1 points 2 weeks ago

It's actually kind of hilarious how closely it mimics a human programmer who just sucks at it.

this post was submitted on 18 Dec 2025
970 points (98.5% liked)

Programmer Humor

28240 readers
993 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