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

Programmer Humor

33280 readers
457 users here now

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

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [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.