objc.io – Swift Talk

One of the best videos I’ve seen recently. These guys write a very basic and naive “Network stack” using Swift. They start from scratch, write a few lines of code and then refactor. They repeat the process over and over. The best thing about this video are the comments and reasoning they provide along the process. The end result is a short playground file which you can download and explore (in Swift 2.2). Definitely check this out if you are into learning swift.

Source: https://talk.objc.io/episodes/S01E01-networking

 

Swift : Syntax cheat codes — Swift Programming — Medium

Swift has a lot of syntactic sugar. These tricks make code short and concise but if you are not used to reading it, it may be confusing. This post has all the basics things that you need to know.

Source: Swift : Syntax cheat codes — Swift Programming — Medium

Protocol oriented loading of resources from a network service in Swift ~ Marisi Brothers

Protocol oriented programming has been a cool buzz word since last year’s WWDC. A follow up session was presented in this year’s WWDC and although I didn’t had a chance to watch the new session yet I think that Protocol oriented programming will become main-stream fast, especially since Swift becomes more and more popular. Anyways, this is a long and very detailed example on how to apply this approach and implement a simple network stack on iOS.

Source: Protocol oriented loading of resources from a network service in Swift ~ Marisi Brothers

Swift 3 – Ole Begemann

Since Swift is open source most of the changes in the new major version were already known before WWDC. Having said that, Apple did made a few interesting changes (mostly naming) for the new Swift release. Click this one to read more.

Source: Swift 3 – Ole Begemann

Protocol-Oriented-Networking in Swift

A great post on how to apply protocol oriented programming principles for a common scenario: fetching data from the network for displaying in a ViewController. Including how to write testable code. Great stuff.

Source: Protocol-Oriented-Networking in Swift

What’s new in Swift 3.0: learn all the changes in one place – Hacking with Swift

Version 3.0 of Swift is expected later this year. Although there is no final version yet and the language is still under development there are some known “source breaking” changes. This post reviews some of the most important ones and will help you prepare for the 3.0 release.

Source: What’s new in Swift 3.0: learn all the changes in one place – Hacking with Swift

POLYMORPHISM AND PROTOCOL EXTENSIONS

I really recommend this post. It includes a great simple example of how to use protocol extensions instead of having an if/else-if statements. It also includes a few very good arguments to why the result is much better. Just read it.

http://ctarda.com/2016/04/polymorphism-and-protocol-extensions/

10 Swift One Liners To Impress Your Friends

As the title suggests this post shows how to use Swift tricks to implement functionality in one line of code. Most of these examples should never be used in production code but this is a good opportunity to test your Swift skills and understand these tricks.
View at Medium.com

Outlets: Strong! Or Weak?

Outlets in Swift were also a hot subject this week. Apple recommends using an implicitly unwrapped optional while developers started hitting edge-cases and flows where this isn’t the best solution. This post reviews the alternatives and when to use them. It’s short and clear.
http://scottberrevoets.com/2016/03/21/outlets-strong-or-weak/

A Case Against // MARK: Comments

The //Mark comments are famously used to help organize big classes. This posts suggests that this sense of tidiness is false and that there are better alternatives. I agree.
http://holko.pl/2016/03/10/a-case-against-mark/