CS FundamentalsHardProduct-company placement
A team's code review guideline says reviewers should check that each pull request has tests for new behaviour, follows the style guide, and has a clear description, and that PRs should be kept small. Why does PR size matter so much?
- A. Small PRs are faster to merge regardless of quality
- B. Git limits the size of a PR
- C. Large PRs cannot be built by CI
- D. Review effectiveness drops sharply for large changes: reviewers skim, miss defects and approve; small focused PRs get careful review and are easier to revert
Correct answer: D. Review effectiveness drops sharply for large changes: reviewers skim, miss defects and approve; small focused PRs get careful review and are easier to revert
Reviewers' attention is limited, so defect detection per line falls as change size grows. Small, single-purpose PRs give better reviews, faster feedback and safer rollbacks.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Logs from 40 service instances arrive in a central store. Support needs to find every log line for one customer request that crossed 5…
- A team builds a hiring form. QA notices the form can be submitted with all fields blank; developers say 'validation is the back-end's…
- A client can fund only 120 person-months. Using basic COCOMO for a semi-detached project (Effort = 3.0 x KLOC^1.12), what is the largest…
- For the function below, what is its cyclomatic complexity, and how many times is a[i] + a[j] == target evaluated for findpair([1, 2, 3, 4…
- For the same findpair function (two nested for loops, an if that returns (i, j) when a pair matches, and return None after the loops)…
- A Value Object is modelled as a frozen dataclass. What does this print? python from dataclasses import dataclass, FrozenInstanceError…