Swift#9 Diff between SVN & GIT?

SVN relies on a centralised system for version management. It’s a central repository where working copies are generated and a network connection is required for access.

GIT relies on a distributed system for version management. You will have a local repository on which you can work, with a network connection only required to synchronise.


Swift#8 SiriKit

SiriKit: Handle user requests for your app’s services that originate from Siri or Maps.

We use SiriKit to implement app extensions that integrate your services with Siri and Maps.

SiriKit supports two types of app extensions:

  • An Intents app extension receives user requests from SiriKit and turns them into app-specific actions. For example, the user might ask Siri to send a message, book a ride, or start a workout using your app.
  • An Intents UI app extension displays branding or other customized content in the Siri or Maps interface after your Intents app extension fulfills a user request. Creation of this extension is optional.


  • Not a substitute for a full app only an extension.
  • SiriKit cannot use all app types.
  • Siri requires a consistent Internet connection to work.
  • Siri service needs to communicate Apple Servers.

Source: Apple Documentation

Swift#7 The 3 Rules of TDD

Test Driven Development has 3 simple rules:

  1. You are not allowed to write any production code unless it is to make a failing unit test pass.
  2. You are not allowed to write any more of a unit test than is sufficient to fail and compilation failures are failures.
  3. You are not allowed to write any more production code than is sufficient to pass the one failing unit test.

Source: http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd