On Feb 13, 2015, at 3:17 PM, Brian Gerstle
<bgerstle(a)wikimedia.org> wrote:
After a meeting in which the team reviewed Corey's suggested coding style guidelines,
I've made the following edits:
Use of dot-notation for instance methods that are cheap & free of side-effects
Added note about auto-trimming trailing whitespace via Xcode settings
More "if" statement examples (one-line w/ curly brackets)
Ternary statement with ?: operator (Ruby/JS "or" behavior)
ObjC method declaration and invocation spacing guidelines
Block declarations as typedef and method arguments
Category instance method prefix
Use of extern for public constants, and static for private ones
Replaced FJ & Flying Jalapeno w/ WMF & Wikimedia Foundation
I decided to leave some other stuff for "best practices" (i.e. not coding
style), e.g. telescoping methods and use of const for local variables.
Feel free to leave comments on the talk page or add in anything I missed.
--
EN Wikipedia user page:
https://en.wikipedia.org/wiki/User:Brian.gerstle
IRC: bgerstle
_______________________________________________
Mobile-l mailing list
Mobile-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l