Our new book about writing very efficient custom collections in Swift
We’re happy to introduce a new member in our book family: Optimizing Collections by Károly Lőrentey.
When we started reading Károly’s book we were hooked immediately. We asked him to team up, and are very happy to share the result with you.
In this book, we show how to write very efficient Swift collection code. Throughout the book, we benchmark everything — with some surprising results. We implement custom data structures with value semantics and copy-on-write behavior such as sorted arrays, binary trees, red-black trees, and B-trees.
Even if you never implement your own collections, this book helps you reason about the performance of Swift code.
The eBook is available immediately in PDF, ePub, and playground format, and it’s 25% off for launch.
Have a great WWDC week!
Chris, Florian, and Károly
We’ve updated our Core Data book for Swift 3 and iOS 10/macOS 10.12
After our Functional Swift and Advanced Swift books already got the Swift 3 treatment, we finally released the Swift 3 update for our Core Data book as well. This update took much longer than we expected, because we had to work around some hurdles in the publication process. Sorry for the delay!
This update brings the book fully up to speed with Swift 3, as well as with the changes in Core Data released with iOS 10 and macOS 10.12. For example, we now take advantage of the generic result types in Core Data’s API, the new
NSPersistentContainer class, concurrency changes to the persistent store coordinator and much more.
Furthermore, the sample code now includes separate versions of the example project for the first chapters, which allows the code to match up closely with the contents of the early chapters in the book. This makes the book even more approachable for Core Data beginners.
As always, the eBook comes in several formats: PDF, ePub (works great in iBooks as well), and Kindle mobi. The sample code is available on GitHub.
For those who bought a digital version of the previous edition: this is a free update. If you’ve subscribed, you’ll get an email from us. Otherwise just search your email archives for the original receipt containing the download link.
Core Data Workshop
On a related note: if you’re up for a trip to Berlin, we’re teaching a one-day Core Data workshop on March 31st at our new office in Berlin. We’ll be working in a very small group to give you a deeper understanding of the framework, so that you can tackle many of the common problems you might encounter with Core Data.
Best from Berlin,
Florian & Chris
New workshops, dates and discounts
Our Advanced Swift workshop has been a great success. Our attendees love learning in a small group, with most time spent doing hands-on exercises. Therefore, we decided to organize more workshops this year.
We decided to broaden our range of topics, and will provide workshops on Performant Core Data (March 31), Lighter View Controllers (April 28), Generic UIKit (May 17) and Advanced Swift (June 30). Check out our workshops page for the details.
All workshops are lead by Florian Kugler and Chris Eidhof. With two instructors, we keep the workshop very small: twelve attendees, maximum. This allows us to give everyone a lot of attention and help.
For a limited time only, we have added a small number of early bird tickets. Get yours while they last.
We’ve updated our book for Swift 3
Over the last months, we have been very busy preparing a new edition of Advanced Swift, which is now fully updated for Swift 3.
After Airspeed Velocity joined the Swift team at Apple, Ole Begemann got on board as a co-author. Together, we went over all the chapters, and identified what needed to be changed: pretty much everything. Only the chapters on errors and optionals didn’t change too much, but most other chapters have major changes.
Not only did Swift 3 bring massive changes, we also have gotten better as authors. We rewrote sections that were hard to read, we made our examples clearer, we added new content, and we removed unnecessary parts. As authors, we haven’t just improved our writing, but also our understanding of the language: another year of Swift also brought another year of experience with the language.
If you buy the digital version of Advanced Swift through our website, you’ll get a PDF, a .mobi (for your Kindle), and a .ePub version (which also works great in iBooks). And because we’re just as excited about iOS playgrounds as you probably are, we’re also including a Playground Book that contains the book’s full text and code for you to experiment with on your iPad (see this as a beta version — there might still be some kinks to work out).
For those who bought a digital version of the previous edition: this is a free update. If you’ve subscribed, you’ll get an email from us, and otherwise search your email archives for a download link.
Best from Berlin,
Ole, Florian and Chris