The Swift Apprentice: Beginning Programming with Swift 2 (Anglais) Broché – 21 octobre 2015
Les clients ayant acheté cet article ont également acheté
Quels sont les autres articles que les clients achètent après avoir regardé cet article?
Description du produit
Présentation de l'éditeur
There is an updated version of this book, updated for Xcode 7.3 and Swift 2.2.
Search for "The Swift Apprentice Updated for Swift 2.2"
Biographie de l'auteur
Aucun appareil Kindle n'est requis. Téléchargez l'une des applis Kindle gratuites et commencez à lire les livres Kindle sur votre smartphone, tablette ou ordinateur.
Pour obtenir l'appli gratuite, saisissez votre numéro de téléphone mobile.
Détails sur le produit
Si vous vendez ce produit, souhaitez-vous suggérer des mises à jour par l'intermédiaire du support vendeur ?
Meilleurs commentaires des clients
Commentaires client les plus utiles sur Amazon.com
That said, this is a reasonably good all-around introduction to the Swift programming language. It covers most of the major topics clearly, and you can definitely learn a good amount from it. I do think it's a good learning resource, and I'd be willing to recommend it to many people.
Nevertheless, it's not perfect, and some parts -- particularly later in the book -- feel rushed or incomplete (and force you to go elsewhere if you really want to understand what's going on). The book never really covers "optional chaining," for instance, which is a fairly prevalent coding style in Swift programs. Additionally, in Chapter 21, the book's examples suddenly begin using a `guard` keyword out of the blue, though this keyword is never explained or commented upon anywhere in the book (and it's never used in any other chapter, either). Likewise, one of the challenges in Chapter 20 (Challenge A) is best solved using a protocol extension that has multiple type constraints -- that's how the provided solution actually does solve it, in fact -- even though the book never explains *how* to define multiple constraints for a protocol extension, leaving you at a bit of a loss (you'll either have to do some web searching to find out how to do this or "cheat" and look at the solution). In fact, I found the discussion of extensions of protocols to be somewhat incomplete; I still don't quite understand what happens in a case where you have two (or more) different extensions of a protocol, each of which defines a method of the same name but one of which has more specific type constraints than the other (is the more specific extension's method called whenever that extension's type constraints *best* match the typing of the instance on which the method is invoked, or does something else happen?).* I think the discussion of closures was too quick, as well, though fortunately -- due to experience with other programming languages that use them often -- I was okay with it. Finally, as a more general comment, I think that there is some redundancy/strangeness to the organization of the book -- it's a bit weird, I think, to have earlier chapters covering structures, enums, classes, and "advanced" classes, and then later have chapters on properties and methods (but perhaps others will disagree). (Edited to add one other thing: the book unfortunately doesn't have an index, which makes it harder to use as a reference.)
Anyway, that about sums it up. This is an easy-to-read, generally good book on Swift that will cover most of your bases, but which might require you to do some digging around elsewhere if you really want to really "get" what's going on or want to get a more complete picture.
[*] Don't worry if you don't understand what I'm asking here (it's an Amazon review, so I tried to be brief). For those who do understand and are curious, I did some playing around in a Swift playground and it *appears* that yes, the more specific extension's method is called when invoked on an instance whose types best match that extension's type constraints.
If you find the Apple Swift iBook to be a tad too dry, than this will be more ideal for you. The Apple Swift iBook is released in a new edition only for major releases of Swift and the editorial style is very, very, very DRY. The Apple Swift iBook does not have exercises to practice your knowledge like the Swift Apprentice. Also, Swift Apprentice is supported by an online Q&A forum.
Rechercher des articles similaires par rubrique