cerkalo
» » Mastering Swift 2

Mastering Swift 2 download ebook

by Jon Hoffman

Mastering Swift 2 download ebook
ISBN:
1785886037
ISBN13:
978-1785886034
Author:
Jon Hoffman
Publisher:
Packt Publishing - ebooks Account (November 4, 2015)
Language:
Pages:
395 pages
ePUB:
1796 kb
Fb2:
1923 kb
Other formats:
doc lrf docx lit
Category:
Networking & Cloud Computing
Subcategory:
Rating:
4.3

FREE shipping on qualifying offers.

FREE shipping on qualifying offers.

It also covers advanced topics such as Objective-C interoperability, ARC, closures, and concurrency. You'll then learn to interact with REST-based web services using Swift.

Mastering Swift 2 - Hoffman Jon. Table of Contents. Jon Hoffman has over 20 years of experience in the field of information technology. Over those 20 years, he has worked in the areas of system administration, network administration, network security, application development, and architecture. Currently, he works as a senior software engineer with Syn-Tech Systems.

Mastering Swift 2 book.

This book is for developers that want to dive into the newest version of Swift. If you want in-depth knowledge on some of the most sophisticated elements of Swift development, including protocol extensions, error handling, design patterns, and concurrency, Mastering Swift 2 gives you guidance on how to apply them in your own projects.

Hoffman Jon. Packt Publishing, 2015. We will conclude the book by getting equipped to design and build applications using established design patterns

Hoffman Jon. 358 p. - ISBN-10: 1784392154, ISBN-13: 978-1-78439-215-4. We will conclude the book by getting equipped to design and build applications using established design patterns. What You Will Learn: Prototype and test code in a Playground; Understand the basics of Swift, including operators, collections, control flows, and functions; Create and use Classes, Structures, and Enums, including object-oriented topics such as inheritance, protocols, and Extensions; Dwell into Subscripts, Optionals, and closures.

Mastering Swift 4. J. Hoffman. About This Book: Harness the latest and most advanced features of Swift 4 to develop quality iOS and macOS applications. Comprehensive coverage of all the advanced features of Swift and guidance on advanced design techniques. Dive deep into protocol extensions, learn new error handling model, and use featured Swift design patterns to write more efficient code.

Dive into the latest release of the Swift programming language with this advanced Apple development book for creating exceptional iOS and osX applications

About This BookHarness the latest and most advanced features of Swift 2 to develop quality iOS and OSX applicationsComprehensive coverage of all the advanced features of Swift and guidance on advanced design techniquesDive deep into protocol extensions, learn new error handling model, and use featured Swift design patterns to write more efficient codeWho This Book Is For

This book is for developers that want to dive into the newest version of Swift. If you want in-depth knowledge of some of the most sophisticated elements of Swift development including protocol extensions, error-handling, design patterns, and concurrency, Mastering Swift 2 gives you guidance on how to use and apply them in your own projects.

What You Will LearnDive into the core components of Swift 2 including operators, collections, control flow, and functionsCreate and use classes, structures, and enums including object-oriented topics such as inheritance, protocols, and extensionsDevelop a practical understanding of subscripts, optionals, and closuresLearn how to use the new protocol extension and error handling features of Swift 2Add concurrency to your applications using Grand Central DispatchMaster Objective-C interoperability with Mix and MatchAccess network resources using SwiftImplement various standard design patterns in the Swift languageIn Detail

At their Worldwide Developer's conference (WWDC) in 2015, Apple announced Swift 2, a major update to the innovative programming language they first unveiled to the world the year before. Swift 2 features exciting enhancements to the original iteration of Swift, acting, as Apple put it themselves as “a successor to the C and Objective-C languages.” – This book demonstrates how to get the most from these new features, and gives you the skills and knowledge you need to develop dynamic iOS and OS X applications.

Learn how to harness the newest features of Swift 2 todevelop advanced applications on a wide range of platforms with this cutting-edge development guide. Exploring and demonstrating how to tackle advanced topics such as Objective-C interoperability, ARC, closures, and concurrency, you'll develop your Swift expertise and become even more fluent in this vital and innovative language. With examples that demonstrate how to put the concepts into practice, and design patterns and best practices, you'll be writing better iOS and OSX applications in with a new level of sophistication and control.

Style and approach

This book takes an example-based approach where each concept covered is supported by example code to not only give you a good understanding of the concept, but also to demonstrate how to properly implement it.

Reviews:
  • Togar
When I saw the one 2 star review of this book stating it had numerous typos, I read though a number of pages in the “Look Inside” preview and could not find any typos therefore I decided to order it.
I have read the first couple of chapters and found the book to be very informative. I am looking forward to getting to the more advance chapters since I am fairly familiar with Swift.
I would definitely recommend this book to friends who are trying to learn Swift or need to move from Swift 1.x to version 2.
  • godlike
I purchased this book to add Swift to my programming skill set. I have had years of experience programming in Java, C#, and C++ and most of the books I have used to gain some mastery of these languages start at the position of the reader not having any idea about the language but have had experience programming. This book wants to be that type of book but fails spectacularly. When the chapter on extending protocols introduces code for handling control validation before actually explaining the control functions, I could forgive since I assumed that it would be covered later. However when giving an example of handling errors that uses the "mutating" keyword for structs but that keyword was never mentioned in the chapter that actually explained structs and classes, then I can only assume the author was too rushed to fully cover the topic. If he fails to cover important things early on, then I don't have faith that the advanced topics will ever be explained clearly. Do yourself a favor and look for another book that fully covers the Swift language.

In case anyone is wondering, the "mutating" keyword is used because functions inside structs are not able to modify their properties (variables) normally. Adding the "mutating" keyword allows the function to do that.
  • Rishason
Some spelling errors, but otherwise very helpful.
  • Freaky Hook
Writer know very little about Swift. Talk about memory management which Swift manages. Writer approach the subject from Object C and write about how to connect between Swift and Object C. You'll learn much more from Apple's developer's website: [...]
  • Damdyagab
Some of the code desperately needs revision!! In particular, in 'Making an HTTP GET request', the first set of code has a dangling open bracket (,
  • Ustamya
So recently I got my hands on the newly released Mastering Swift 2 (released November 2015) by Jon Hoffman and published by PacktPub.
I was excited. I instantly downloaded my copy of e-book and just wanted to take a quick look at it before evening to dive in. Well later I realized that I spent my one hour lunch break reading Mastering Swift 2.
By the time of writing this review I’ve covered the whole book and I can say that it’s been the most pleasant and exciting ride I’ve ever had with reading any book.
I guess I can compare it with the feelings when I was a kid and watched Spider-Man movie with Tobey Maguire and Kirsten Dunst on the big screen for the first time. For a month or two I was in the Spider-Man world and since then I still love Spider-Man.
Now let’s get serious.
This book is perfectly written. The author describes and explains everything the way it makes clear even for a novice.
My purpose with the book was to once again go through basics of Swift and learn about the new stuff that has been added to version 2.
To be honest I expected much less then this book really offered.
One of the most important stuff incorporated into Swift 2 are protocol extensions. In the first version of Swift, it was possible to extend the functionality of existing class, struct and enum types. Now with Swift 2, you can extend a protocol as well. I never knew what Protocol-Oriented programing was. While it may only seem like a minor feature at first, protocol extensions are extremely powerful and can transform the way you write code. This books explains it and even tells you how to use protocol extensions and why you would want to use protocol extensions in details.
Error handling has been revamped in Swift 2. Instead of NSError objects and double pointers, they moved to a new system that looks similar to exception handling. If I didn’t read this book I would know nothing about error handling in Swift 2 in such details. And probably my code would be more prone to bugs and security problems.
One thing worth of noting is that you can read about all of the new features elsewhere, but the way of presenting this information and “teaching” is outstanding by Jon Hoffman.
This book covers all of the main features of Swift and gives you great explanation. It also covers topics such as working with XML and JSON, working with NSURLSession. This book has got everything.
I could write much more about the contents of the book that makes almost 400 pages and after some time you would think – “I should probably read it, guess its worth of it”. I can tell you straight away that it’s a MUST READ book for everyone, novice and expert.
  • Steel_Blade
Good all around introduction to the language Swift 2.

The examples are easy enough to follow and to type in to try out in the playground. I took a Swift introduction course back in the beginning of December and I wish they had used this book as the teaching book instead of another obsolete Swift 1.2 book.

This book is simple enough my 13 years old has started reading it and while I do not anticipate him reading past chapter 12...it is easy enough for him to follow.

Again, this book is not to help you learn to program, it is a book for someone who is already fluent in another language and just wants to learn Swift 2.