Swift 4 Programming Cookbook: 50 task-oriented recipes to make you productive with Swift 4
暫譯: Swift 4 程式設計食譜:50 個以任務為導向的配方,讓你在 Swift 4 中提高生產力
Keith Moon
- 出版商: Packt Publishing
- 出版日期: 2017-09-29
- 售價: $2,000
- 貴賓價: 9.5 折 $1,900
- 語言: 英文
- 頁數: 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 模組打包供他人使用