this post was submitted on 15 Sep 2023
715 points (97.2% liked)

Programmer Humor

19557 readers
453 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] 33 points 1 year ago* (last edited 1 year ago) (10 children)

I never push as last thing in the evening. I want to sleep over it and revise in the morning. --amend crew unite

[–] [email protected] -1 points 1 year ago (6 children)

What if while you sleep over it your laptop gets stolen or damaged? I'd rather push every small change than sit on it.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (3 children)

I would lose max 3 hrs of work that I already know how to re do. I can live with that. I don't want to publish too much unfinished/unpolished work. There is always the chance someone might need the branch.

Even if drafts under development, I like to publish something that reaches the standard of my "best" me, not my "Friday evening" me

[–] [email protected] 2 points 1 year ago (1 children)

Why not? Do you push directly to master?

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

Because someone else might need to work on something on or from my branches. And I don't want garbage in my history. There are cases I might not be able to squash merge, so all my history will be in the project history. I want each commit to be clean. It is not a lot of effort, and forces me to increase code quality, because I review my code more often.

Rules for all projects I manage: never rebase published branches and always publish clean code (even implementation is unfinished).

From experience following these simple rules make the whole project management easier and more effective

load more comments (1 replies)
load more comments (3 replies)
load more comments (6 replies)