Немного рефлексии по поводу длинных названий методов и переменных: http://journal.stuffwithstuff.com/2016/06/16/long-names-are-long/
#codestyle
#codestyle
Orta Therox проводит часовое code review их tvOS приложения. Отличная замена для любимых летсплеев на один вечер: http://artsy.github.io/blog/2015/11/05/Emergence-Code-Review/
#review #codestyle
#review #codestyle
Консольная утилита, которая помогает проверить, насколько API ваших классов соответствует стилю кода Swift 3.
https://github.com/dduan/needless/blob/master/README.md
#swift #codestyle
https://github.com/dduan/needless/blob/master/README.md
#swift #codestyle
GitHub
needless/README.md at master · dduan/needless
A utility to find needless words in Swift function names. - needless/README.md at master · dduan/needless
Достаточно подробные гайды от Эша Фурроу по неймингу в Swift'овом коде. Основной смысл - все зависит от контекста, где-то нужно быть многословным, а где-то нет.
https://ashfurrow.com/blog/naming-things-in-swift/
#swift #codestyle
https://ashfurrow.com/blog/naming-things-in-swift/
#swift #codestyle
Ash Furrow
Naming Things in Swift
Lately, I've been using different programming languages and environments, trying to diversify my skills. I've been working regularly in React, Swift, Objective-C, and Scala, and they all have their own idioms and conventions. It's been a real learning experience…
Эрика Садун рассказывает про лучшие практики использования кастомных операторов в Swift.
https://realm.io/news/slug-erica-sadun-operators-strong-opinions/
#swift #codestyle
https://realm.io/news/slug-erica-sadun-operators-strong-opinions/
#swift #codestyle
academy.realm.io
Operators and Strong Opinions
Swift operators are flexible and powerful, but only when they are well-chosen and heavily used. Learn some essential Swift best practices.