Advanced Swift: Updated for Swift 4 3rd EditionКНИГИ » ПРОГРАММИНГ
Название: Advanced Swift: Updated for Swift 4, 3rd Edition Автор: Chris Eidhof, Ole Begemann Издательство: Kugler und Eidhof GbR ISBN: 1979725454 Год: 2017 Страниц: 458 Язык: английский Формат: pdf (true), epub Размер: 14.0 MB
Книга "Продвинутый Swift" предлагает вам возможности Swift, от низкоуровневого программирования до высокоуровневых абстракций. В этой книге мы напишем о передовых концепциях в программировании Swift. Если вы прочитали "Руководство по программированию Swift" и хотите узнать больше, эта книга для вас.
Advanced Swift is quite a bold title for a book, so perhaps we should start with what we mean by it.
When we began writing the first edition of this book, Swift was barely a year old. We did so before the beta of 2.0 was released — albeit tentatively, because we suspected the language would continue to evolve as it entered its second year. Few languages — perhaps no other language — have been adopted so rapidly by so many developers.
But that left people with unanswered questions. How do you write “idiomatic” Swift? Is there a correct way to do certain things? The standard library provided some clues, but even that has changed over time, dropping some conventions and adopting others. Over the past three years, Swift has evolved at a high pace, and it has become clearer what idiomatic Swift is.
To someone coming from another language, Swift can resemble everything you like about your language of choice. Low-level bit twiddling can look very similar to (and can be as performant as) C, but without many of the undefined behavior gotchas. The lightweight trailing closure syntax of map or filter will be familiar to Rubyists. Swift generics are similar to C++ templates, but with type constraints to ensure generic functions are correct at the time of definition rather than at the time of use. The flexibility of higher-order functions and operator overloading means you can write code that’s similar in style to Haskell or F#. And the @objc and dynamic keywords allow you to use selectors and runtime dynamism in ways you would in Objective-C.
Swift is a complex language — most programming languages are. But it hides that complexity well. You can get up and running developing apps in Swift without needing to know about generics or overloading or the difference between static and dynamic dispatch. You may never need to call into a C library or write your own collection type, but after a while, we think you’ll find it necessary to know about these things — either to improve your code’s performance, to make it more elegant or expressive, or just to get certain things done.
Who Is This Book For? This book targets experienced (though not necessarily expert) programmers — such as existing Apple-platform developers, or those coming from other languages such as Java or C++ - who want to bring their knowledge of Swift to the same level as that of Objective-C or some other language. It’s also suitable for new programmers who started on Swift, have grown familiar with the basics, and are looking to take things to the next level.
Скачать Advanced Swift: Updated for Swift 4 3rd Edition
Swift in the Cloud Название: Swift in the Cloud Автор: Ricardo Olivieri and Samuel Kallner Издательство: Wiley Год: 2017 Формат: AZW3, EPUB Размер: 15 Мб Язык:...
Advanced Swift: Updated for Swift 3 Название: Advanced Swift: Updated for Swift 3 Автор: Chris Eidhof, Ole Begemann, Airspeed Velocity Издательство: objc.io Год: 2016 Страниц: 376...
Core Data: Updated for Swift 3 Название: Core data: Updated for Swift 3 Автор: Florian Kugler, Eggert Daniel Издательство: objc.io Год: 2016 Страниц: 316 Формат: True PDF...