Swift Style: An Opinionated Guide to an Opinionated Language


Swift Style: An Opinionated Guide to an Opinionated Language
by Erica Sadun
B0711L66J2
pages 页数: 226 pages
Publisher Finelybook 出版社: O′Reilly (21 April 2017)
Language 语言: English
ISBN-10 书号:1680502352
ISBN-13 书号:9781680502350
Discover the do's and don'ts involved in crafting readable Swift code as you explore common Swift coding challenges and the best practices that address them. From spacing, bracing, and semicolons to proper API style, discover the whys behind each recommendation, and add to or establish your own house style guidelines. This practical, powerful, and opinionated guide offers the best practices you need to know to work successfully in this equally opinionated programming language.
Apple's Swift programming language has finally reached stability, and developers are demanding to know how to program the language properly. Swift Style guides you through the ins and outs of Swift programming best practices. This is the first best practices book for serious, professional Swift programmers and for programmers who want to shine their skills to be hired in this demanding market.
A style guide offers a consistent experience of well-crafted code that lets you focus on the code's underlying meaning, intent, and implementation. This book doesn't offer canonical answers on Swift coding style. It explores the areas of Swift where structure comes into play. Whether you're developing a personal style or a house style, there are always ways to enhance your code choices. You'll find here the ideas and principles to establish or enhance your own best style practices.
Begin with simple syntactical styling. Strengthen code bracing for easy readability. Style your closures for safety and resilience. Perfect spacing and layout. Master literal initialization and typing. Optimize control flow layout and improve conditional style choices. Transition from Objective-C and move code into Swift the right way. Boost API design using proper naming and labeling. Elevate defaulted arguments and variadics to their right places. Finally, Erica offers her own broad recommendations on good coding practice.
What You Need:
Recent version of the Swift programming language

Contents


Chapter 1. Structure Your Code For Readability
Chapter 2. Adopt Conventional Styling
Chapter 3. Establish Preferred Practices
Chapter 4. Design The Right Apis
Chapter 5. Look To The Past And The Future
Chapter 6. Good Code
在您浏览常见的Swift编码挑战和解决这些问题的最佳做法时,了解制定可读Swift代码的做法和不作为。从间距,支撑和分号到适当的API风格,发现每个建议的背后,添加或建立自己的房屋风格指南。这个实用,强大和有意见的指南提供了您需要知道的最佳实践,以便在这种同样有意思的编程语言中顺利工作。
苹果的Swift编程语言终于达到稳定,开发人员要求知道如何正确编程语言。 Swift Style引导您完成Swift编程最佳实践。这是严重,专业的Swift程序员和想要在这个苛刻的市场上聘请他们的技能的程序员的第一本最佳做法书。
风格指南提供了精湛的代码一致的体验,让您专注于代码的基本含义,意图和实现。本书不提供Swift编码风格的规范答案。它探索了斯威夫特地区的结构发挥作用。无论您是开发个人风格还是房屋风格,始终都有增强代码选择的方法。您可以在这里找到建立或增强自己最佳风格实践的想法和原则。
从简单的语法风格开始。加强代码支撑,便于阅读。为您的关闭设计安全和弹性。完美的间距和布局。主文字初始化和打字。优化控制流布局并改进条件样式选择。从Objective-C转换并以正确的方式将代码移入Swift。 Boost API设计使用适当的命名和标签。将默认的参数和可变参数提升到正确的位置。最后,Erica提供了自己关于良好编码实践的广泛建议。
你需要什么
最新版本的Swift编程语言
目录
第1章结构您的代码可读性
第二章采用传统造型
第3章建立首选实践
第四章设计正确的Apis
第五章。过去和未来
第六章好的代码

下载地址 Download隐藏内容需1积分,请先!没有帐号? 注 册 一个!
觉得文章有用就打赏一下文章作者
未经允许不得转载:finelybook » Swift Style: An Opinionated Guide to an Opinionated Language
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏