this post was submitted on 16 Mar 2024
93 points (83.9% liked)

Programmer Humor

19187 readers
1393 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 1 year ago
MODERATORS
 
all 12 comments
sorted by: hot top controversial new old
[–] dgriffith@aussie.zone 34 points 6 months ago

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

[–] southernwolf@pawb.social 15 points 6 months ago (1 children)

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

[–] mexicancartel@lemmy.dbzer0.com 10 points 6 months ago

1 change, forgot to enable the setting previously

[–] Amaltheamannen@lemmy.ml 13 points 6 months ago (1 children)
[–] malloc@lemmy.world 8 points 6 months ago* (last edited 6 months ago) (3 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

[–] Aatube@kbin.melroy.org 12 points 6 months ago (1 children)

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

[–] malloc@lemmy.world 3 points 6 months ago (1 children)

That makes sense now. Thanks for extra context.

[–] Aatube@kbin.melroy.org 4 points 6 months 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)

[–] Amaltheamannen@lemmy.ml 5 points 6 months ago (1 children)

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

[–] Aatube@kbin.melroy.org 1 points 6 months ago

It says "1 changed file..." at the top

[–] victorz@lemmy.world 4 points 6 months ago

I'm not convinced that's it, but I don't know enough to explain why.