Every major open-source project has its own style guide: a set of conventions (sometimes arbitrary) about how to write code for that project. It is much easier to understand a large codebase when all the code in it is in a consistent style. “Style” covers a lot of ground, from “use camelCase for variable names” to “never use global variables” to “never use exceptions.”
- Google style guide official Github page: google/styleguide
- Google 开源项目风格指南(中文版,非官方) Github 托管地址: zh-google-styleguide/zh-google-styleguide
- Google 开源项目风格指南(中文版,非官方)在线文档托管地址: ReadTheDocs在线阅读