this post was submitted on 21 Oct 2023
675 points (98.4% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
top 19 comments
sorted by: hot top controversial new old
[–] drolex@sopuli.xyz 44 points 2 years ago* (last edited 2 years ago) (1 children)

You haven't written your unit tests and you have 675 compiling errors left. It's time to sleep grandpa

[–] nx2@feddit.de 12 points 2 years ago
[–] _dev_null@lemmy.zxcvn.xyz 31 points 2 years ago* (last edited 2 years ago) (5 children)

That's why I've got my IDE configured to make a commit and push for every single ctrl-s.

And one more thing, I'm not going to squash before my final PR.

EDIT:

For those of you interested, here's my gitconfig alias to help with this workflow:

[alias]
    ctrl-s-commit-push="!f() { count=$(cat count.txt); git add .; git commit -m \"$(date): commit $count\"; git push;}; f"

IMPORTANT: For those who are downvoting, yes, my entire comment is sarcasm, lol! Do not ever do anything like this in a shared repo, ever! If you actually do this in a shared repo, your access will likely be revoked the moment someone sane and competent realizes what you're doing.

Addendum: In that alias, I would've used left angle bracket instead of cat, but apparently lemmy scrubs those. I even tried the entity for it, but no go for either.

[–] EatATaco@lemm.ee 8 points 2 years ago

And one more thing, I’m not going to squash before my final PR.

Pure evil.

[–] AstridWipenaugh@lemmy.world 8 points 2 years ago

Your sarcasm is brutal! That's sarcasm, right? RIGHT?!

[–] jelloeater85@lemmy.world 4 points 2 years ago

Squash and Force Push. Your whole life in one line.

[–] ignotum@lemmy.world 3 points 2 years ago

Combine that with my pre-push hook that runs linting and tests, which takes about 10 minutes, and you're gonna have a good time

I've long ago disabled the tests and only run linting now, i'm not a machochist

[–] ntzm@lemmy.ml 2 points 2 years ago (4 children)

Wouldn't that mean you just have shit tons of commits? What about the commit message?

[–] EatATaco@lemm.ee 6 points 2 years ago

"Hit Ctrl-S"

[–] TickleMeElmo@discuss.tchncs.de 2 points 2 years ago

I'd expect the poo emoji at that point.

[–] _dev_null@lemmy.zxcvn.xyz 2 points 2 years ago

The more the merrier. I edited my comment above to show my git alias for comments :)

[–] DmMacniel@feddit.de 0 points 2 years ago (2 children)
[–] ripcord@kbin.social 3 points 2 years ago

That sounds just awful. But ok.

[–] ntzm@lemmy.ml 1 points 2 years ago

I meant whatever works for you, but if a coworker did that I would be fuming

[–] HurlingDurling@lemm.ee 8 points 2 years ago

*commits

ERROR: There are 5000 conflicts, please resolve them before pushing

[–] Giraffe00@lemmy.world 2 points 2 years ago

It's too late.

[–] White_Flight@lemmy.world 1 points 2 years ago (1 children)

I must be dumb, I don't get it

[–] Traister101@lemmy.today 3 points 2 years ago (1 children)

Git. The joke is they have stuff locally they want to push to a remote

[–] sag@lemm.ee 1 points 2 years ago

And make the production down.