this post was submitted on 27 Jun 2024
411 points (95.4% liked)

Programmer Humor

19463 readers
213 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 82 points 4 months ago (3 children)

Senior developer tip: squash the evidence.

[–] [email protected] 27 points 4 months ago (2 children)

Principle developer tip: rewrite history to make yourself seem smarter.

Soft reset the whole branch and commit a series of atomic and semantic patches (eg separating code, test, and refactor changes) that tell a clean narrative of the changeset to reviewers, future blamers.

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

And then my team squashes those commits 😩

[–] [email protected] 1 points 4 months ago

Yeah it sucks. If the commits are really helpful, you can just paste the git log into the PR/MR/CR body after it's been merged

[–] [email protected] 10 points 4 months ago

git commit --amend --no-edit

This helped me countless times...

[–] [email protected] 6 points 4 months ago

Senior developer tip: Squash ~~the evidence~~ management