Swift 4 Programming Cookbook: 50 task-oriented recipes to make you productive with Swift 4
Keith Moon
- 出版商: Packt Publishing
- 出版日期: 2017-09-29
- 售價: $1,970
- 貴賓價: 9.5 折 $1,872
- 語言: 英文
- 頁數: 384
- 裝訂: Paperback
- ISBN: 1786460890
- ISBN-13: 9781786460899
-
相關分類:
Apple Developer
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Write robust and efficient code, and avoid common pitfalls using Swift
- Get a comprehensive coverage of the tools and techniques needed to create high-performance apps
- Packed with easy-to-follow recipes, this book will help you develop code using the latest version of Swift
Book Description
Swift is an exciting, general purpose programming language. It's open sourcing and porting to Linux present many opportunities to use Swift outside of iOS and OSX app development. As a result, it's a great time to become a Swift developer!
This book begins with Swift Constructs and moves on to Data Wrangling. You will then learn how to use Swift with other languages. Also look at how to perform object-oriented programming, Functional Reactive programming, and Protocol Oriented Programming with Swift. Finally, you will get to grips with server-side Swift, its performance, and responsiveness in Swift.
With this recipe-based book, you will look at Swift's merits and benefits by covering the problem and solutions on it. This collection of concise, task-oriented recipes immediately makes you productive with Swift, with solutions ranging from core programming topics such as functions, protocol, error handling, and generics to advanced topics such as memory management and concurrency. Finally, you will learn how to improve code efficiency and enhance your application's performance.
What you will learn
- Use protocol extensions to provide default behavior for your protocols
- Use Swift with multiple programming styles and paradigms
- Define flexible classes and structs using Generics
- Use OperationQueues to execute and prioritize work
- Create higher-order functions that take functions as parameters
- Take your work mobile with Playgrounds on iOS
- Import your own custom functionality into Swift Playgrounds
- Use Swift Package Manager to package your Swift modules for others to use
商品描述(中文翻譯)
主要特點
- 使用Swift編寫堅固高效的代碼,避免常見的陷阱
- 全面介紹創建高性能應用所需的工具和技術
- 本書提供易於遵循的示例,幫助您使用最新版本的Swift開發代碼
書籍描述
Swift是一種令人興奮的通用編程語言。它的開源和在Linux上的移植為在iOS和OSX應用開發之外使用Swift提供了許多機會。因此,現在是成為Swift開發人員的絕佳時機!
本書從Swift結構開始,然後介紹數據整理。接著,您將學習如何與其他語言一起使用Swift。還將介紹如何進行面向對象編程、功能反應編程和協議導向編程。最後,您將深入了解服務器端的Swift,以及Swift在性能和響應性方面的表現。
通過這本以示例為基礎的書籍,您將了解Swift的優點和好處,並涵蓋相關問題和解決方案。這本簡潔、以任務為導向的書籍將使您立即能夠使用Swift進行開發,解決方案涵蓋核心編程主題(如函數、協議、錯誤處理和泛型)以及高級主題(如內存管理和並發)。最後,您將學習如何提高代碼效率,增強應用程序的性能。
您將學到什麼
- 使用協議擴展為您的協議提供默認行為
- 使用多種編程風格和範式來使用Swift
- 使用泛型定義靈活的類和結構
- 使用OperationQueues執行和優先處理工作
- 創建接受函數作為參數的高階函數
- 使用iOS上的Playgrounds進行移動開發
- 將自定義功能導入Swift Playgrounds
- 使用Swift Package Manager將您的Swift模塊打包供他人使用