this post was submitted on 16 Mar 2024
17 points (100.0% liked)

Programmer Humor

21988 readers
1300 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago

You can stare at that code all afternoon but you won't spot the bug until a microsecond after you hit "commit".

[–] [email protected] 3 points 1 year ago (1 children)

I'm not sure I understand, what's wrong with this commit?

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

1 change, forgot to enable the setting previously

[–] [email protected] 3 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (2 children)

~~Whoever committed this change thinks updating the text on the UI for this system will automagically fix issue.~~

~~It’s like editing the HTML on your bank’s website to show you have $1B in the bank 😂~~

Issue here committer forgot to update UI to expose the feature person was working on

[–] [email protected] 3 points 1 year ago (1 children)

No, the settings already existed, they just forgot to expose it

[–] [email protected] 1 points 1 year ago (1 children)

That makes sense now. Thanks for extra context.

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

(Here's some more context: The button is in the UI, but it exposed a completely different function than advertised, probably due to being generated from copy-and-pasting the previous button)

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

Yeah without more context it just seemed they were renaming the setting as part of a larger diff