Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Coding Style Guides

Prabhanshu Attri edited this page May 27, 2016 · 8 revisions

For the vast majority of the codebase, collaborators should adhere to Google's style guides, but all project-specific style and details not listed in Google's guides should be listed here. Please edit this document and add additional sections as necessary.

iOS / Objective-C

Read Google's Objective-C Style Guide first.

  • In order to maintain consistency, constants should be declared as #define macros instead of static const variables.

      #define NIL_OPTIONS 0
    
  • Internal private instance variables should be used instead of internal @property declarations. These variables should be prefixed by an underscore to adhere to Google's Objective-C Style Guide.

  • In order to maintain consistency, property accessors should be called directly instead of being called through dot syntax.

      [[cell textField] setText:@"sample text"]; 
    

Android / Java

Read Google's Java Style Guide First.

Web Service / Python

Read Google's Python Style Guide First.

Clone this wiki locally