Book description
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
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Contents
- Preface
- Acknowledgments
- About the Author
- Editor’s Note: We Want to Hear from You!
- Reader Services
- 1. Welcome to Modern Swift
- 2. Printing and Mirroring
- 3. Optionals?!
- 4. Closures and Functions
- 5. Generics and Protocols
- 6. Errors
- 7. Types
- 8. Miscellany
- Index
- Code Snippets
Product information
- Title: The Swift™ Developer’s Cookbook
- Author(s):
- Release date: December 2015
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780134395364
You might also like
video
Introduction to ChatGPT and OpenAI
OpenAI ChatGPT is a powerful language model that uses advanced ML techniques to generate human-like text …
audiobook
Rewire Your Brain 2.0
Not long ago, it was thought that the brain you were born with was the brain …
book
Swift in Depth
Swift in Depth guides you concept by concept through the skills you need to build professional …
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …