this post was submitted on 04 Jul 2023
193 points (97.1% liked)

Programmer Humor

37270 readers
31 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] csm10495@sh.itjust.works 14 points 2 years ago* (last edited 2 years ago) (1 children)

You know at least it printed an error. I hate when things silently swallow errors.

I'm looking at you, Python programmers:

try:
   <100 lines of nonsense>
except:
   pass
[–] rimorso@feddit.it 11 points 2 years ago (1 children)

We are not savages now we use

with suppress(Exception):
    > 100 lines nonsense
[–] csm10495@sh.itjust.works 11 points 2 years ago* (last edited 2 years ago)