PR slices make review and recovery smaller

A PR slice is a coherent unit of change with one purpose, its own checks, and a clear boundary. Splitting by arbitrary file count is less useful than splitting by behavior or decision.

Small slices make it easier to review, revert, or resume after interruption.

SliceExample purpose
Regression sliceAdd a failing or characterization check
Fix sliceMake the smallest behavior change
Documentation sliceUpdate the contract and handoff
Follow-up sliceSeparate optional cleanup or later risk

Slice checklist

  1. Name one purpose per slice.
  2. Keep related tests with the behavior they protect.
  3. Avoid mixing formatting or unrelated refactoring.
  4. Run focused checks before opening the next slice.
  5. Record dependencies between slices.
  6. Review the combined result before merge.

PR slicing note

PR 1: characterization/regression evidence
PR 2: minimal implementation change
PR 3: docs and handoff

Dependency: PR 2 waits for PR 1
Decision: keep optional cleanup outside this task

Canonical lesson source · JavaRush

Open JavaRush material