I hate absurdly long variable names like this:<p><pre><code> static const NSTimeInterval NYTArticleViewControllerNavigationFadeAnimationDuration = 0.3;
</code></pre>
I feel like if your naming convention forces you to have variable names over 50 letters long, there is a problem.
> Asterisks indicating pointers belong with the variable, i.e. NSString <i>text not NSString</i> text or NSString * text, except in the case of global string constants.<p>I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?
Here's their blog post about it:
<a href="http://open.blogs.nytimes.com/2013/08/01/objectively-stylish/" rel="nofollow">http://open.blogs.nytimes.com/2013/08/01/objectively-stylish...</a>
I see a lot of obsession with the irrelevant: when you're allowed to use dot-notation, number of spaces for indentation (sic), etc... The only reasonable item, it the singleton one, the rest... what a waste of time!
Has anyone ever tried to configure uncriustify [0] with a complex style guide like this and succeeded?<p>Are there other similar tools that might be a better fit?<p>[0] - <a href="http://uncrustify.sourceforge.net" rel="nofollow">http://uncrustify.sourceforge.net</a>