From 76b783f20f9025d3e7d8ab1cc80aafbfd6bcc3ac Mon Sep 17 00:00:00 2001 From: Max Chetrusca Date: Wed, 2 Jul 2014 23:48:06 +0200 Subject: [PATCH] Added Line length section. The provided examples all meet this length. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 5aafee6..f5eb17b 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Here are some of the documents from Apple that informed the style guide. If some * [Golden Path](#golden-path) * [Error handling](#error-handling) * [Singletons](#singletons) +* [Line Length](#line-length) * [Line Breaks](#line-breaks) * [Smiley Face](#smiley-face) * [Xcode Project](#xcode-project) @@ -686,6 +687,9 @@ Singleton objects should use a thread-safe pattern for creating their shared ins ``` This will prevent [possible and sometimes prolific crashes](http://cocoasamurai.blogspot.com/2011/04/singletons-your-doing-them-wrong.html). +## Line Length + +Since Objective-C is a verbose language, the recommended line length is 100 columns. A page guide for column can be set in Xcode preferences, at Text Editing. ## Line Breaks @@ -702,6 +706,7 @@ self.productsRequest = [[SKProductsRequest alloc] ``` + ## Smiley Face Smiley faces are a very prominent style feature of the raywenderlich.com site! It is very important to have the correct smile signifying the immense amount of happiness and excitement for the coding topic. The end square bracket is used because it represents the largest smile able to be captured using ascii art. A half-hearted smile is represented if an end parenthesis is used, and thus not preferred.