this post was submitted on 25 Nov 2023
787 points (97.5% liked)

Programmer Humor

32549 readers
526 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] arymandias@feddit.de 89 points 1 year ago (1 children)

Me burning to death fixing pylint warnings before I can commit my code.

[–] Theharpyeagle@lemmy.world 14 points 1 year ago

Melting because someone didn't configure the right profile and now isort and black are fighting over imports.

[–] Oszilloraptor@feddit.de 67 points 1 year ago* (last edited 1 year ago) (4 children)

Why is the wrong version always the one that is posted.

The (in my eyes) correct (and iirc original) version is:

  • Git commit
  • Git push
  • Get out*

*as someone pointed out (and I remember it as well, but thought I rembered it wrong and corrected it, shame on me in this context) the last point may be originally "git out"

[–] ChaosInstructor@lemmy.world 26 points 1 year ago (2 children)

i might remember it wrong...but was it not 'git out'?

[–] Oszilloraptor@feddit.de 2 points 1 year ago

Honestly I remebered it as "git out" as well, but that would be semantically incorrect and "get out" seems close enough.

[–] uis@lemmy.world 9 points 1 year ago

Here git out is mentioned

[–] zero_gravitas@aussie.zone 7 points 1 year ago

That is so much better 👍

load more comments (1 replies)
[–] Shizu@lemmy.world 49 points 1 year ago (3 children)
[–] pivot_root@lemmy.world 19 points 1 year ago

Here at Company Inc, we continue to send our thoughts and prayers to the 38 interns who perished in the office fire of '07. Sixteen years later, we still mourn the loss caused by this unpredictable, unpreventable, and unlitigatable accident. We hope that, in time, the grieving families of those interns are eventually able to move on with both their hearts and their loved ones' funeral expense debts.

[–] pastermil@sh.itjust.works 7 points 1 year ago (1 children)

Should've pulled first before starting your work.

[–] atyaz@reddthat.com 5 points 1 year ago (3 children)

Sometimes my work takes a while and other people push in the meantime. Guess I'm dying the fire.

load more comments (3 replies)
[–] evilgiraffe666@ttrpg.network 5 points 1 year ago (1 children)

On a push? What are you merging there?

[–] fushuan@lemm.ee 3 points 1 year ago (1 children)

Ofc, you might be working directly on develop/master/shared branch, I know people that work in those environments (ew)

[–] evilgiraffe666@ttrpg.network 7 points 1 year ago

Right, on shared branch you might need to pull first if you're out of date (and you would be if you're all leaving the office at the same time), and that could cause a merge conflict.

It's like I always said, bad branching strategies are a fire safety issue.

[–] PrettyFlyForAFatGuy@lemmy.ml 42 points 1 year ago* (last edited 1 year ago) (2 children)

i read a reddit post years ago where a someone wrote a script that iterates through all the projects in their dev folder, for each project creating a new branch, committing and pushing.

they then aliased it to "fire" or "panic" or something like that.

not a bad idea really

[–] flashgnash@lemm.ee 8 points 1 year ago (1 children)

As in one they'd manually run if there was a fire?

[–] icedterminal@lemmy.world 6 points 1 year ago (1 children)

Exactly. The alias just points to the script which is executed.

[–] flashgnash@lemm.ee 8 points 1 year ago (1 children)

Ohh I see so you just run git fire?

[–] PrettyFlyForAFatGuy@lemmy.ml 6 points 1 year ago (1 children)

if its aliased you should be able to just run "fire" and it does the rest

[–] flashgnash@lemm.ee 5 points 1 year ago

Oh bash alias right

[–] fushuan@lemm.ee 34 points 1 year ago (6 children)

Slight correction. In case of fire:

Git checkout -b firemyusername Git commit -am="fire" Git push.

We don't want to have conflicts with code versions when going in on a rush, better to create a new branch. We can merge all the conflicts afterwards.

[–] reboot6675@sopuli.xyz 2 points 1 year ago (1 children)

Oh man I hadn't seen a git checkout -b in years haha since they introduced switch and restore, never looked back

load more comments (1 replies)
[–] flashgnash@lemm.ee 2 points 1 year ago (1 children)

Isn't that what git stash is for though?

[–] crmsnbleyd@sopuli.xyz 4 points 1 year ago (2 children)
load more comments (2 replies)
load more comments (4 replies)
[–] kd45@lemm.ee 31 points 1 year ago (1 children)

Cause of death: 15 minute long pre-push hook

[–] redeven@lemmy.world 15 points 1 year ago (1 children)

Just

git add . && git commit -m "sorry theres a fire" && git push -u origin feature/fire

And run out. It will eventually finish pushing. Or not.

load more comments (1 replies)
[–] Aurenkin@sh.itjust.works 28 points 1 year ago

In case of

Git commit

Git push origin main --force

Fire

[–] MoonRaven@feddit.nl 20 points 1 year ago (1 children)
[–] dirtbiker509@lemm.ee 2 points 1 year ago

*git -tf out

[–] CaptainBlagbird@lemmy.world 16 points 1 year ago* (last edited 1 year ago) (1 children)
load more comments (1 replies)
[–] Piemanding@sh.itjust.works 11 points 1 year ago

Mark this shit NSFW. I could have viewed it at work.

[–] nao@sh.itjust.works 8 points 1 year ago (1 children)

no changes added to commit (use "git add" and/or "git commit -a")

[–] rufus@discuss.tchncs.de 2 points 1 year ago* (last edited 1 year ago) (1 children)

It should (at least) be:

git commit -a -m "🚨🔥🚨"
git push --force

Better, create a new branch and push it to origin(?).

Relevant The IT Crowd

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

Better have not created any new files tho - git commit -a doesn't catch those without an add first.

[–] xantoxis@lemmy.world 7 points 1 year ago

And if your git repo is self-hosted on-prem, you'd better be helping pack it and carry it out.

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

I've got something similar on my office door that reads

In case of fire git commit -a git push git -tf out

[–] HiddenLayer5@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (2 children)

Counterpoint: Virtualized environment/remote desktop. The real computer is in a data center hundreds of kilometers away with world class fire suppression systems.

Counter counterpoint: If you're virtualized you might be working from home, in which case, that's rough, hope they manage to restore your house.

load more comments (2 replies)
[–] hakunawazo@lemmy.world 3 points 1 year ago (1 children)

If the flames are nearby I would be so reckless and execute git push --force.
I don't want to die for a merge conflict.
But maybe then the team will burn me later.

Just push to a new branch

[–] netchami@sh.itjust.works 3 points 1 year ago

Commit message: It's lit🔥🔥🔥

[–] soggy_kitty@sopuli.xyz 2 points 1 year ago

Sorry to be that guy but I don't think it's smart to put this anywhere in public, keep this shit somewhere private as a joke

[–] barsoap@lemm.ee 2 points 1 year ago

This is a lawsuit waiting to happen. Anyway any of you ever heard of ACID? Why aren't our undo buffers durable and integrated with version control? Squash and forget the individual keystrokes as soon as an actual commit is made.

load more comments
view more: next ›