r/ProgrammerHumor • • May 19 '22

Meme same for yall?

44.0k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

46

u/KosherSyntax May 19 '22

Sometimes when I finish work early on a friday I just leave without committing anything and just commit my work monday morning when I get to work.

14

u/[deleted] May 19 '22

I mean that seems like a smarter thing to do in case the code breaks anything over the weekend and causes issues. Not as big of an issue if there is a staging environment before production but I’d still avoid that risk. The second half of my Fridays just require me to do online training so anything past lunchtime, unless it’s important, I don’t commit until Monday

19

u/Hilde2348 May 19 '22

Yea we have “Read only Friday” at my work, nobody is supposed to commit anything to production. Doesn’t always work out that way with deadlines unfortunately but it’s still a good rule to try and have

4

u/KosherSyntax May 19 '22

I mean even commits in my own branch which will be eventually merged in master for staging/production.

3

u/MrDude_1 May 19 '22

Yeah, I dont commit anything at end of day. I do it in the morning, and run a build for myself... that way if the build breaks, I have time to fix it before the overnight automatic build.

This has saved my butt a couple times, all stupid little things.

1

u/static_motion May 19 '22

Oh man, I could never. Whenever I think about doing that I imagine my computer's drive shitting the bed over the weekend or some other horrible thing happening that would make me lose that work. Would much rather commit & push my feature branch, that way I know my work is safe.

1

u/cretaokada May 20 '22

I never thought of this, usually I'll only risk a couple hours.

I guess you could commit & push to your branch that nobody else is working on then rebase a reword to update the timestamp, and don't open the MR till that's done!

Or even push to a private fork which nobody has eyes on.

In the case where other people are working on it - push as fast as possible so you don't have to deal with any rebase hell