Swift Apprentice Third Edition: Beginning Programming with Swift 4
暫譯: Swift 學徒第三版:使用 Swift 4 的程式設計入門

raywenderlich.com Team, Janie Clayton, Alexis Gallagher, Matt Galloway, Ben Morrow, Cosmin Pupaza, Steven van Impe

  • 出版商: Razeware LLC
  • 出版日期: 2017-11-16
  • 語言: 英文
  • 頁數: 436
  • 裝訂: Paperback
  • ISBN: 1942878435
  • ISBN-13: 9781942878438
  • 相關分類: Apple Developer
  • 無法訂購

相關主題

商品描述

Learn How To Program with Swift 4!

Swift is the easiest way to get started developing on Apple's platforms: iOS, OS X, watchOS and tvOS. With the release of Swift 4 in 2017, the Swift language is packed with even more features and enhancements.

In this book, you'll learn the basics of Swift from getting started with playgrounds to simple operations to building your own types. Everything you'll learn is platform-neutral; you'll have a firm understanding of Swift by the end of this book, and you'll be ready to move on to whichever app platform you're interested in.

Who This Book Is For:

This book is for complete beginners to Swift 4. No prior programming experience is necessary!

Topics Covered in The Swift Apprentice

  • Playground basics: Learn about the coding environment where you can quickly and easily try out your code as you learn.
  • Numbers and strings: These are the basic kinds of data in any app – learn how to use them in Swift.
  • Making Decisions: Your code doesn't always run straight through – learn how to use conditions and decide what to do.
  • Functions: Group your code together into reusable chunks to run and pass around.
  • Collection Types: Discover the many ways Swift offers to store and organize data into collections.
  • Building Your Own Types: Learn how to model elements in your app using classes, structures and enumerations.
  • Protocols & Protocol-Oriented Programming: Define protocols to make your code more interface-based and compositional.
  • Error Handling: Make your code more robust and flexible by signaling and handling error conditions gracefully.
  • Functional Programming: Learn how to use Swift in a functional style and how this can make your code clearer and easier to reason about.

After reading this book and completing your Swift apprenticeship by working through the included exercises and challenges, you'll be ready to take on app development on the platform of your choice!

商品描述(中文翻譯)

**學習如何使用 Swift 4 程式設計!**

Swift 是開始在 Apple 平台(iOS、OS X、watchOS 和 tvOS)上開發的最簡單方法。隨著 2017 年 Swift 4 的發布,Swift 語言擁有了更多的功能和增強。

在這本書中,您將學習 Swift 的基礎知識,從使用 playgrounds 開始,到簡單的操作,再到建立您自己的類型。您所學的所有內容都是平台中立的;在閱讀完這本書後,您將對 Swift 有堅實的理解,並準備好轉向您感興趣的任何應用平台。

**本書適合誰:**

這本書適合完全的 Swift 4 初學者。不需要任何先前的程式設計經驗!

**《Swift 學徒》中涵蓋的主題**

- **Playground 基礎:** 了解您可以快速輕鬆地嘗試代碼的編碼環境。
- **數字和字串:** 這些是任何應用中的基本數據類型 – 學習如何在 Swift 中使用它們。
- **做決策:** 您的代碼並不總是直線執行 – 學習如何使用條件來決定該做什麼。
- **函數:** 將您的代碼分組為可重用的塊以運行和傳遞。
- **集合類型:** 探索 Swift 提供的多種存儲和組織數據到集合中的方法。
- **建立您自己的類型:** 學習如何使用類、結構和列舉來建模您應用中的元素。
- **協議與協議導向程式設計:** 定義協議以使您的代碼更具介面導向和組合性。
- **錯誤處理:** 通過優雅地信號和處理錯誤條件,使您的代碼更健壯和靈活。
- **函數式程式設計:** 學習如何以函數式風格使用 Swift,以及這如何使您的代碼更清晰且更易於推理。

在閱讀完這本書並通過完成附帶的練習和挑戰來完成您的 Swift 學徒訓練後,您將準備好在您選擇的平台上進行應用開發!