this post was submitted on 13 Oct 2023
819 points (93.8% liked)

Programmer Humor

33138 readers
606 users here now

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

Rules:

founded 5 years ago
MODERATORS
(page 2) 17 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

The other day my editor was broken. It kept inserting extra parenthenses inside my if condition. Sheesh, but oh well, cannot fix that now, gotta fix this piece of code that for some reason isn't doing what it's supposed to.

Turned out (much later) I had typed = instead of ==. Which makes the code formatter insert extra parentheses inside the if expression.

I've been coding for 30 years.

[–] [email protected] 1 points 1 year ago

I hate the smell of should coming off my code.

[–] [email protected] -2 points 1 year ago

Just use a debugger.

load more comments
view more: ‹ prev next ›