this post was submitted on 07 Feb 2025
547 points (98.9% liked)

Programmer Humor

30038 readers
744 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 24 comments
sorted by: hot top controversial new old
[–] DaddleDew@lemmy.world 84 points 1 year ago* (last edited 1 year ago) (2 children)

Back when I was still on Reddit, I made a comment on a chess sub saying that in chess you are not allowed to make your king "commit suicide" to explain how a stalemate works. One day later I got a message about suicide prevention because someone flagged me for promoting suicide.

What a dumb site.

[–] lord_ryvan@ttrpg.network 40 points 1 year ago (1 children)

I mean in all fairness it was probably a bot that flagged that.

By the time I left (API shenengigans) Reddit was already a place where bots interacted with bots half the time.

[–] Letstakealook@lemm.ee 12 points 1 year ago (2 children)

One of my favorite moments on reddit was spotting a bot that spouted unrelated nonsense. I checked the comment history and found users responding earnestly to the nonsense. While it was hilarious, it was also quite sad, the state of those people.

[–] lord_ryvan@ttrpg.network 10 points 1 year ago* (last edited 1 year ago)

One of the funnier ones for me was a “your words are in alphabetical order” bot replying it to the haiku-bot that replied to the human first. The alphabetical-order bot didn't reply to te the human as well; but to the haiku-bot, mind you!

[–] anzo@programming.dev 5 points 1 year ago

What people? "It's bots all the way down, of course!"

[–] i_dont_want_to@lemmy.blahaj.zone 18 points 1 year ago (1 children)

They should have known you were just horsing around.

[–] Klear@sh.itjust.works 2 points 1 year ago (1 children)
[–] fossphi@lemm.ee 2 points 1 year ago

Google helpline numbers

[–] i_dont_want_to@lemmy.blahaj.zone 49 points 1 year ago (1 children)

It's too late for me. My coworker pull requested before I could and now I think I'm going to commit merge conflict.

[–] exu@feditown.com 6 points 1 year ago

Just base your stuff on their stuff and hassle everyone to merge that other PR.

[–] muntedcrocodile@lemm.ee 39 points 1 year ago (1 children)

That's not a mistake git can do that to people. Especially those who have never used git via command line.

[–] NocturnalMorning@lemmy.world 12 points 1 year ago* (last edited 1 year ago) (3 children)

Yeah, imagine you accidently commit over weeks of work, or hell, if it's the main branch, and you deleted the other origin branch prior to merging, it could be a lot more than a few weeks worth of work. The revert to a previous commit... shutters.

[–] WimpyWoodchuck@feddit.org 14 points 1 year ago (2 children)

I don't know if you're joking, but in case you're not: git reflog and git reset --hard HEAD@{n} is your friend. You can undo almost anything. Deleted commits and branches aren't really deleted. Remotely deleted branches can be pushed again.

Except for an (accidental) git restore/git reset. Those are permanent and can't be undone.

[–] rooroo@feddit.org 4 points 1 year ago* (last edited 1 year ago)

Even git reset can be undone by a lot of editors. At least IntelliJ has an excellent local history that works much like git. Sure it’s a pain if you touched several files but that’ll teach you to atomify your commits.

Edit: Plus, git reset itself does nothing of note really, but I’m sure you know. Needs the —hardflag to do any meaningful damage.

[–] ulterno@programming.dev 1 points 1 year ago* (last edited 1 year ago)

Except for an (accidental) git restore/git reset. Those are permanent and can't be undone.

Unless, you didn't close your editor before doing so, in which case, you can just save it again.

I'm not talking about IDEs.
Even Kate gives you the option to either discard the deleted document/changes or keep them and save again.

[–] muntedcrocodile@lemm.ee 7 points 1 year ago (1 children)

Its even scarier when master branch is prod

[–] NocturnalMorning@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Don't tell me ghost stories right now, it's almost my bedtime.

[–] wise_pancake@lemmy.ca 5 points 1 year ago (1 children)

That’s when you call in a wizard.

They do git necromancy and sacrifice a goat to the reflog to recover your code

[–] verstra@programming.dev 2 points 1 year ago

Ah, yes, the reflog incantation. It is said that it can be performed only by those who have rebased on an hard reset origin.

[–] refurbishedrefurbisher@lemmy.sdf.org 20 points 1 year ago* (last edited 1 year ago) (1 children)

That's a really long phone number. Crazy that it has 7 repeating numbers in succession.

[–] Darkassassin07@lemmy.ca 26 points 1 year ago* (last edited 1 year ago) (1 children)

Considering suicide? Type in these 18 numbers without mistakes while you think about it...

[–] refurbishedrefurbisher@lemmy.sdf.org 31 points 1 year ago (1 children)
[–] Cavemanfreak@lemm.ee 9 points 1 year ago

That's easy to remember!

[–] fin@sh.itjust.works 9 points 1 year ago* (last edited 1 year ago)

@@ -1 +0,0 @@

-my existence