355
top 16 comments
sorted by: hot top controversial new old
[-] xmunk@sh.itjust.works 92 points 2 weeks ago

Still not as excellent as On Error Resume Next

Imagine the sheer ~~idiocy~~ genius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line.

VBA is truly the language of savants.

[-] wizardbeard@lemmy.dbzer0.com 24 points 2 weeks ago

PowerShell does that by default, and it's my least favorite feature in my most used language.

$ErrorActionPreference = Stop

At the start of almost every script.

[-] DickFiasco@lemm.ee 42 points 2 weeks ago
[-] TimeSquirrel@kbin.melroy.org 31 points 2 weeks ago

Like putting electrical tape over your check engine light.

[-] konalt@lemmy.world 30 points 2 weeks ago

I wrap every line of code in a try catch block, even my try catch blocks are in try catch blocks just in case the first accidentally drops it after catching it

[-] CaptainBlagbird@lemmy.world 7 points 2 weeks ago

Yo dawg, I heard you like try-catch blocks

[-] 30p87@feddit.org 25 points 2 weeks ago* (last edited 2 weeks ago)
[-] missphant 7 points 2 weeks ago
process.on('uncaughtException', console.error)
[-] Bosht@lemmy.world 16 points 2 weeks ago

That's fucking hilarious

[-] cypherpunks@lemmy.ml 12 points 2 weeks ago

except: pass

[-] SnotFlickerman 7 points 2 weeks ago

Donald Trump does coding.

[-] FiniteLooper@lemm.ee 5 points 2 weeks ago

I came across a stack overflow recently about how to do something in a jasmine unit test. Someone gave a solution of “I just changed the test to xit(“… and now there are no errors!”

[-] Pickle_Jr@lemmy.dbzer0.com 5 points 2 weeks ago* (last edited 2 weeks ago)

It works on their machine though!

[-] devilish666@lemmy.world 5 points 2 weeks ago

Push it to prod & see the world burns around you

[-] art_codesmith@toot.cafe 4 points 2 weeks ago

@Irelephant "Fixed dem warnings boss."

this post was submitted on 17 Jan 2025
355 points (100.0% liked)

Programmer Humor

33243 readers
861 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS