
Desertcart purchases this item on your behalf and handles shipping, customs, and support to Finland.
Harness the power of the latest edition with this in-depth and comprehensive guide to the Swift language Key Features Fifth edition of this bestselling book, improved and updated to cover the latest version of the Swift 5 programming language Get to grips with popular and modern design techniques to write easy-to-manage Swift code Learn how to use core Swift features such as concurrency, generics, and copy-on-write in your code Book Description Over the years, the Mastering Swift book has established itself amongst developers as a popular choice as an in-depth and practical guide to the Swift programming language. The latest edition is fully updated and revised to cover the new version: Swift 5. Inside this book, you'll find the key features of Swift 5 easily explained with complete sets of examples. From the basics of the language to popular features such as concurrency, generics, and memory management, this definitive guide will help you develop your expertise and mastery of the Swift language. Mastering Swift 5, Fifth Edition will give you an in-depth knowledge of some of the most sophisticated elements in Swift development, including protocol extensions, error handling, and closures. It will guide you on how to use and apply them in your own projects. Later, you'll see how to leverage the power of protocol-oriented programming to write flexible and easier-to-manage code. You will also see how to add the copy-on-write feature to your custom value types and how to avoid memory management issues caused by strong reference cycles. What you will learn Understand core Swift components, including operators, collections, control flows, and functions Learn how and when to use classes, structures, and enumerations Understand how to use protocol-oriented design with extensions to write easier-to-manage code Use design patterns with Swift, to solve commonly occurring design problems Implement copy-on-write for you custom value types to improve performance Add concurrency to your applications using Grand Central Dispatch and Operation Queues Implement generics to write flexible and reusable code Who this book is for This book is for developers who want to delve into the newest version of Swift. If you are a developer and learn best by looking at and working with code, then this book is for you. A basic understanding of Apple's tools would be beneficial but not mandatory. All examples should work on the Linux platform as well. Table of Contents Taking the First Steps with Swift Learning about Variables, Constants, Strings and Operators Optional Types Using Swift Collections Control Flow Functions Classes, Structures, and Protocols Using Protocols and Protocol Extensions Protocol Oriented Design Generics Availability and Error Handling Custom Subscripting Working with Closures Concurrency and Parallelism in Swift Custom Types Memory Management Swift Formatting and Style Guider Adopting Design Patterns in Swift
| Dimensions | 7.5 x 0.84 x 9.25 inches |
| Edition | 5th ed. |
| Isbn 10 | 1789139864 |
| Isbn 13 | 978-1789139860 |
| Item Weight | 1.4 pounds |
| Language | English |
| Print Length | 370 pages |
| Publication Date | April 30, 2019 |
| Publisher | Packt Publishing |
User
Good balance of broad and specific information
I am new to Swift but have moderate experience in other languages, this book was very appropriate for my skill level. Hoffman uses meaningful examples that are succinct and effective.
User
Excellent introduction to Swift 5.3
This is the best book on Swift I have bought and I have several. The explanations are very thorough and easy to understand. It is a longish book so it gets into more advanced topics, Protocols, Generics and Design Patterns. I recommend it for anyone who wants to learn Swift. In addition to this book, you will also need to find a good resource to learn SwiftUI and you will be on your way to your first iOS app.
User
Provides Needed Insights To Learning Swift
I have been noodling around with Swift for an iOS app I am working on. I am learning as I go with various online resources but reached a point where I was going to too many places for answers and missing some really big picture concepts along the way. For instance: the "Protocol-Oriented Programming in Swift" WWDC video. Cool stuff. However, go to the "Protocols" section of the Swift Language Guide at swift.org. The string "oriented" isn't even on the page! I needed a resource that would teach Swift but also provide insights into the language features as well as best practices.The reviews on this book were pretty good so I purchased a Kindle copy and off I went. Pretty good stuff. Some grammatical errors, for sure, as well as Kindle formatting problems but they weren't obstacles to learning. It did provide the insights I was looking for and a whole chapter called "Protocol Oriented Design". Yes! There were some areas that I wish had more depth (e.g. the "self requirement") but I when I encountered things like that I would stop, search on the net to get more detail, then add a note to my Kindle copy.Other Swift or iOS learning books, videos, and websites tend to lead you down a very narrow path (i.e. giving you a fish) instead of providing you with the tools and insights you need to go off that path on your own (i.e. teaching you how to fish). This book does provide you with the latter. While not perfect, I highly recommend it if you feel that, while you kinda *know* Swift, you don't think you *get* Swift. This will help you get it.
User
A must read book on the Swift language
I have bought each revision of this book and this one is by far the best. The author did a complete reorganization of the book which made it so much better than the previous ones. The Generics, Protocol-Oriented Programming and Copy-On-Write sections are a must read for anyone wanting to master the Swift programming language.An earlier review noted that there were not practice material in the book which is correct. This is not a book designed to be used as a text book (I dislike reading text books) this is a book written for developers needing to learn the features of the Swift language quickly so they can implement them in their projects.The best thing about this book is it is written to teach the Swift language itself and is not solely focused on iOS programming so 99% of the material can be applied to iOS development, MacOS Development and also Server Side Swift.I would absolutely recommend this book for anyone learning Swift or anyone that knows Swift but wants to take their skills to the next level.
User
Good resource, but has issues as textbook
I bought this book in order to learn the Swift 5 language. I've been programming for years, but I had never looked at Swift before this book. The book leads you through the language so that you build your knowledge as you go, and from that perspective it was great. Where it fell short was the lack of an Editor. If there had been an Editor, they should go back to flipping burgers. Aside from the spelling and grammar errors, some of the examples were just plain wrong. Don't get me wrong, they are not so bad that you don't notice them and can't figure them out, but they shouldn't be there in a published book.Sometimes it was as simple as a decision to change the names of the variables in the example code before printing, but the surround text still had the other names, or vice versa. There were sections that seemed to drop you at the end of the chapter and then worked backwards to see how the author got to that point. He even closes one chapter with the text that should have started it. In one place he even talks about how a house cannot have more than 3 floors and the example code only allows floors to be added if the current number of floors is greater than 3. Oops!Over all, it is a good book that can help understand the language, but you need to understand programming to catch the errors and not get lost. Hopefully if it is revised for a 2nd print run, an Editor will get their hands on it first.
User
Revealed Protocol Oriented Programming
Very complete coverage of Swift. Shows the strength and beauty of this new language. Easy to use, safe and new features that no doubt will be incorporated in other languages.
User
Good book for beginners
This is a good introduction for beginners. Also helpful if you know other languages (c#, java, python etc) and want to quickly learn Swift.
User
great but typos
This has been a valuable book for me to read (I'm presently through the first seven chapters, which brings one through classes and structs and barely introduces protocols). I've been doing some Udemy tutorials, so I had some (very) basicfamiliarity with Swift, but this author does a fine job of "filling in details" and making one appreciate the overall logic of the language. I especially like his anecdotes about "when I first had my Vic32 I was doing this, but needed a way to do that" etc. It helps one follow the history of coding, i.e., how/why various innovations have been introduced over the years. I've also learned to appreciate just how elegant the Swift language really is.I'd love to give the book five stars, but alas, too many typos. Usually it's just formatting issues, but there was at least one instance of using the wrong variable, and another where the text clearly says to follow one practice but then the following example does not.Plus, the author has a weird way of splitting some of his paragraphs: It's like he ends a lot of paragraphs with what should be the beginning of the next paragraph -- which I guess is a minor consideration if the goal is to learn Swift. But I kept feeling like, geez, next time just let me proofread it for you!
User
A good introduction into Swift 5
This is a good introduction into Swift 5. I have experience in object oriented programming with C++, Java, Python, Objective C and early Swift versions (which I haven't used for a while).With this understanding you can get fast into the Swift 5 fundaments. It contains some minor errors which you easily can manage to understand and live with.If you are looking for details on application development with Xcode for macOS, iOS, watchOS or tvOS you need to use additional books which might not give the same level of details on Swift techniques like this one.
User
Great book on Swift
This book is a great reference to the Swift 5 language. It's great for beginners with some programming knowledge and experienced developers looking to learn Swift. My only complaint is that there are several errors throughout the book. If they were just typos I wouldn't mind, like "form" instead of "from", but they're code errors that would confuse a beginner and even hinder the understanding of the language. For example, in one chapter it shows a range type with a value 1..<20, meaning, the values go from 1 to 19, but the book says "0 to 19", and so on. Although annoying, this is not enough reason to not give this book and its author 5 stars. I'm really enjoying how well things are explained and with great examples, easy to follow.
User
Code - Screen Shots
Does not matter how well a book is written I don't want to view code as screen shots.Will ask for a refund.
User
Good
Packaging was good. The book is best for very beginners
User
A reference manual more than a mastery book
The worst part about this book is the lack of practical exercises. It just tells you what a function is supposed to do with very little context and shows minimal isolated code. It reads like a manual.The second worst part is that if you code along, you find that some examples are wrong for swift 5, making it pretty obvious they didn't test the code snippets. I can only assume they took an older version and stamped it as "swift 5" to sell more copies but they didn't verify.It's not all bad. Some information was useful to get an idea of the swift philosophy, but if I wanted to read a reference manual I would go straight to the source. I gave up on this one after 5 chapters.
Trustpilot
2 weeks ago
4 days ago