The Swift Developer's Cookbook (Paperback)

Erica Sadun

  • 出版商: Addison Wesley
  • 出版日期: 2015-12-19
  • 售價: $1,400
  • 貴賓價: 9.5$1,330
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Paperback
  • ISBN: 0134395263
  • ISBN-13: 9780134395265
  • 相關分類: Apple Developer
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

In The Swift Developer’s Cookbook, renowned author Erica Sadun joins powerful strategies with ready-to-use Swift code for solving everyday development challenges.

As in all of Sadun’s programming best-sellers, The Swift Developer’s Cookbook translates modern best practices into dozens of well-tested, easy-to-apply solutions. This book’s code examples were created in response to real-world questions from working developers to reflect Swift’s newest capabilities and best practices. Each chapter groups related tasks together. You can jump straight to your solution without having to identify the right class or framework first.

Sadun covers key Swift development concepts, shows you how to write robust and efficient code, and helps you avoid common pitfalls other developers struggle with. She offers expert strategies for working with this immensely powerful language, taking into account Swift’s rapid evolution and its migration tools.

Whether you’re moving to modern Swift from Objective-C, from older versions of the Swift language, or from the world of non-Apple languages, this guide will help you master both the “how” and “why” of effective Swift development. Industry recruiters are scrambling to find Swift developers who can solve real problems and produce effective working code. Get this book, and you’ll be ready.

Coverage includes
  • Writing effective Swift code that communicates clearly and coherently to the compiler, your team, and to “future you,” who will be maintaining this code
  • Using Xcode to handle changes in Swift’s language constructs as the language evolves
  • Building feedback, documentation, and output to meet your development and debugging needs
  • Making the most of optionals and their supporting constructs
  • Using closures to encapsulate state and functionality and treat actions as variables for later execution
  • Leveraging control flow with innovative Swift-specific statements
  • Working with all Swift types: classes, enumerations, and structures
  • Using generics and protocols to build robust code that expands functionality beyond single types
  • Making the most of the powerful Swift error system
  • Working with innovative features such as array indexing, general subscripting, statement labels, custom operators, and more


This book is part of the Pearson Content Update Program (CUP). As the technology changes, sections of this book will be updated or new sections will be added. The updates will be delivered to you via a free Web Edition of this book, which can be accessed with any Internet connection.

商品描述(中文翻譯)

在《The Swift Developer's Cookbook》中,著名作家Erica Sadun結合強大的策略和現成的Swift代碼,解決日常開發挑戰。

正如Sadun在所有程式設計的暢銷書中所做的那樣,《The Swift Developer's Cookbook》將現代最佳實踐轉化為數十個經過充分測試且易於應用的解決方案。本書的代碼示例是根據實際工作開發者的問題創建的,以反映Swift的最新功能和最佳實踐。每個章節將相關的任務分組在一起,您可以直接跳轉到解決方案,而無需首先識別正確的類別或框架。

Sadun涵蓋了關鍵的Swift開發概念,向您展示如何編寫堅固高效的代碼,並幫助您避免其他開發者常遇到的常見問題。她提供了與這種強大語言一起工作的專家策略,考慮到Swift的快速演進和遷移工具。

無論您是從Objective-C轉向現代Swift,從較舊版本的Swift語言轉向,還是從非蘋果語言的世界轉向,本指南都將幫助您掌握有效的Swift開發的“如何”和“為什麼”。行業招聘人員正競相尋找能夠解決實際問題並生成有效工作代碼的Swift開發人員。購買本書,您將準備就緒。

內容包括:
- 編寫清晰且連貫地與編譯器、團隊和未來維護此代碼的自己溝通的有效Swift代碼
- 使用Xcode處理Swift語言結構的變化,隨著語言的演進
- 構建反饋、文檔和輸出,以滿足您的開發和調試需求
- 充分利用可選型及其支援結構
- 使用閉包封裝狀態和功能,將操作視為以後執行的變量
- 利用創新的Swift特定語句進行控制流程
- 使用所有Swift類型:類、枚舉和結構
- 使用泛型和協議構建強大的代碼,擴展單一類型的功能
- 充分利用強大的Swift錯誤系統
- 使用創新功能,如數組索引、通用下標、語句標籤、自定義運算符等

這本書是Pearson內容更新計劃(CUP)的一部分。隨著技術的變化,本書的某些部分將進行更新,或者新增新的部分。更新將通過本書的免費Web版傳遞給您,可以通過任何互聯網連接訪問。