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

Programmer Humor

37192 readers
769 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 2 years ago* (last edited 2 years 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] -2 points 2 years ago

Just use a debugger.

load more comments
view more: ‹ prev next ›