How We Dey Work

Theme: Light

← All articles

Software Engineering for Google

https://arxiv.org/ftp/arxiv/papers/1702/1702.01715.pdf

We list and describe di main software engineering practices wey Google dey use.

The Source Repository:

  • Most of Google code dey kept for one single source-code repository, and all engineers fit access am.

  • Almost all development dey happen for the "head" of the repository, no be for branches.

  • Automated systems dey run tests often.

  • Code trees get owners, and any change to code for the tree must get approval from owner.

The Build System:

  • Each build step must be "hermetic": e dey depend only on the inputs wey dem declare.

  • Each build step dey deterministic, so dem fit cache the results "for the cloud", and rebuilds dey fast.

  • Each subtree fit get presubmit checks.

Code Review:

  • Google don build excellent web-based code review tools.

  • All changes to the main source code repository MUST get review from at least one other engineer.

  • Dem dey automatically copy code review discussions for each project go the project mailing list.

  • One "experimental" section dey for the repository where dem no dey enforce the normal code review requirements.

  • Dem dey encourage engineers to keep each change small.

  • Dem prefer make bigger challenges break into smaller changes wey people fit easily review in one go.

Testing:

  • Dem strongly encourage unit testing and plenty people dey practice am.

  • Integration testing and regression testing too dey widely practiced.

  • Dem fit automatically enforce Presubmit Checks as part of the code review and commit process.

  • Load testing before deployment too be de rigueur for Google.

  • Google get automated tools to measure test coverage.

Bug tracking:

  • We dey track bugs, feature requests, customer issues, and processes (like releases or clean-up efforts).