this post was submitted on 01 Sep 2023
329 points (96.1% liked)

Programming

17494 readers
37 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] vvv@programming.dev 7 points 1 year ago (7 children)

Mandatory pull requests + approvals within a team are a waste of everyone's time.

[–] apd@programming.dev 7 points 1 year ago

Big hot take to me; especially in an organization with a large size and code high standard

[–] fusio@lemmy.world 5 points 1 year ago

depends on the company/team culture. are other people gonna have to fix or extend code you wrote? are you the sole engineer working on entire modules? do you hate feedback?

[–] TehPers@beehaw.org 3 points 1 year ago* (last edited 1 year ago) (1 children)

You must trust your team's abilities more than I trust my own. How often does your team merge bugs into main? We use CI primarily for running the full test suite, including integration tests and e2e tests that would be very difficult to run locally due to them using specific credentials to access testing resources.

[–] vvv@programming.dev 1 points 1 year ago (1 children)

If your team consists of people you don't trust, that's the problem to fix first.

[–] TehPers@beehaw.org 1 points 1 year ago (1 children)

I trust my team. I don't trust my or their ability to write and merge perfect code each time. I'm not sure how we'd fix that problem aside from becoming programming gods.

[–] vvv@programming.dev 1 points 1 year ago

My point is, having PRs desn't result in perfect code either. They might help sometimes, maybe 10% of the time if I'm being generous, but the rest of the time they are a hindrance. The problems people tend to try and solve with them, validation and indoctrination are better solved with a good CD pipeline, and pairing sessions.

[–] uniqueid198x@lemmy.dbzer0.com 3 points 1 year ago (2 children)

We'v known this for twenty years and had the data ta back it up for ten. Github flow is one of the most damaging things to ever happen to software teams

[–] Sigmatics@lemmy.ca 5 points 1 year ago (1 children)
[–] uniqueid198x@lemmy.dbzer0.com 2 points 1 year ago

Got asked about this twice so I'm cut/pasting my answer, but happy to discuss further

Check out the dora reports and the data Nicole Forsgren lays out in her book Accelerate. DORA reborts are free to access. She has found clear links between trunk based (no branching) development and a whole host of positive metrics. There is some suggestion that PRs are not too bad if always done at high quality and within the same day, but its weaker.

[–] fusio@lemmy.world 3 points 1 year ago (1 children)

what data? just curios because there are so many ways to do PRs properly.. like for everything, if it's done badly better not do it. does not mean it is inherently bad

[–] uniqueid198x@lemmy.dbzer0.com 1 points 1 year ago

Check out the dora reports and the data Nicole Forsgren lays out in her book Accelerate. DORA reborts are free to access. She has found clear links between trunk based (no branching) development and a whole host of positive metrics. There is some suggestion that PRs are not too bad if always done at high quality and within the same day, but its weaker.

[–] Sigmatics@lemmy.ca 2 points 1 year ago

Depends how good you are at what you're doing. I'd argue that humans err and it saves a bunch of time to catch bugs before debugging in the wild

[–] Templa@beehaw.org 1 points 1 year ago (1 children)

Unless you have people that are known to delivery garbage code. Which is more common than you would imagine, lol.

[–] vvv@programming.dev 1 points 1 year ago

The solution to that is pairing - spending a few hours collaborating with, and teaching this person will get them up to speed much faster than asynchronously nitpicking their code.