Style guides for Google-originated open-source projects | Code it | Scoop.it

Style guides for Google-originated open-source projects

 

“Style” covers a lot of ground, from “use camelCase for variable names” to “never use global variables” to “never use exceptions.”

 

This project (google/styleguide) links to the style guidelines we use for Google code. If you are modifying a project that originated at Google, you may be pointed to this page to see the style guides that apply to that project.

 

This project holds the

 

Python Style Guide,

 

HTML/CSS Style Guide,

 

JavaScript Style Guide,

 

TypeScript Style Guide,

 

AngularJS Style Guide,

 

C++ Style Guide,

 

C# Style Guide,

 

Swift Style Guide,

 

Objective-C Style Guide,

 

Java Style Guide,

 

R Style Guide,

 

Shell Style Guide,

 

Common Lisp Style Guide,

 

and Vimscript Style Guide.

 

 

If your project requires that you create a new XML document format, the XML Document Format Style Guide may be helpful. In addition to actual style rules, it also contains advice on designing your own vs. adapting an existing format, on XML instance document formatting, and on elements vs. attributes.