Coding thoughts - when I get a pull request with too many code changes! πŸ˜…πŸ˜©πŸ€¦πŸΎβ€β™‚οΈβ €

KG.codes · 1 minute read ·     

⁣My thoughts when I get a pull request with too many code changes πŸ˜…πŸ˜©πŸ€¦πŸΎβ€β™‚οΈ

When it has too many lines of code changed, a lack of description/context, or lack of single/clear focus, it might lead to a swift β€œLGTM (looks good to me)” and MERGED πŸ˜….
As developers, we are often under time constraints and a load of work. Reviewing large/bad pull requests can be overwhelming at times.
This leads to sometimes devs not doing a deep enough review and bugs getting though; I know I’ve done it and if you work long enough you will too! πŸ˜‚πŸ˜…

Try to make it easier on your fellow devs and increase your teams overall code review quality by following these tips:
β€” super specific title
β€” full and helpful description (What? Why? How?)
β€” provide some context that this PR is within
β€” lowest number of code lines changes as possible; consider breaking up big PRs into smaller ones
β€” if it’s not beneficial to break down the PR, provide more description about the changes to break it up in that way
β€” Single responsibility: a PR should tackle one problem or insert one feature; don’t couple different units of work together

⁉️ Be honest; have you ever sped through a code review / pull request approval?
What tips do you have to help with this?

Want to share this?