Slide 1

Slide 1 text

The Tao of Swift

Slide 2

Slide 2 text

(Feng Shui)

Slide 3

Slide 3 text

Thus spake the master programmer:

Slide 4

Slide 4 text

The Tao of Programming flows far away and returns on the wind of morning.

Slide 5

Slide 5 text

The Tao gave birth to machine language.

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

The assembler gave birth to the compiler.

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Each language has its purpose, however humble.

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Welcome

Slide 14

Slide 14 text

Adrian Kosmaczewski

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Xcode 6

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Playgrounds

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Should you use Swift?

Slide 25

Slide 25 text

No. ! (well, not yet)

Slide 26

Slide 26 text

Not (yet) ready for primetime

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

What is Swift?

Slide 30

Slide 30 text

Modern Safe Fast Interoperable

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

http://www.marutisuzuki.com/swift.aspx

Slide 38

Slide 38 text

http://www.scbroncos.com/

Slide 39

Slide 39 text

http://www.englandfootballonline.com/TeamClubs/Clubs/Swifts.html

Slide 40

Slide 40 text

http://www.swiftengineering.com/

Slide 41

Slide 41 text

https://en.wikipedia.org/wiki/File:5.3.10TaylorSwiftByDavidShankbone.jpg

Slide 42

Slide 42 text

http://en.wikipedia.org/wiki/File:Jonathan_Swift_by_Charles_Jervas_detail.jpg

Slide 43

Slide 43 text

http://swift-lang.org/main/

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

Why Swift?

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

Who made it?

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

How does Swift compare to others?

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

https://leverich.github.io/swiftislikescala/

Slide 61

Slide 61 text

http://realm.io/news/swift-for-javascript-developers/

Slide 62

Slide 62 text

http://pietschsoft.com/post/2014/06/07/Basic-Comparison-of-C-and-Apple-Swift-Programming-Language-Syntax

Slide 63

Slide 63 text

http://www.haskell.org/

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

Major Features Strong typing Type inference Closures Optionals / Nullables Generics Custom operators Tuples Interoperable Changes every week

Slide 69

Slide 69 text

Interoperability

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

Not Available in Obj-C Generics Tuples Enumerations Structures Top-level functions Global variables Typealiases Swift-style variadics Nested types Curried functions

Slide 72

Slide 72 text

Is Swift a Functional Language™®©?

Slide 73

Slide 73 text

Sorta.

Slide 74

Slide 74 text

Cocoa is the new Carbon

Slide 75

Slide 75 text

Built for Speed

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

Demos ! (finally!)

Slide 79

Slide 79 text

… and much more Standard library WillSet / DidSet in setters Memory management in closures Convenience initializers Lazy properties Nesting of classes, enums and structs Pattern matching in `switch` statements reStructuredText documentation headers Default parameter values in functions Monads, futures, promises and other functional programming constructions Nested comments

Slide 80

Slide 80 text

Tool Support

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

Editor Support Sublime Text http://www.sublimetext.com/ AppCode http://www.jetbrains.com/objc/ TextMate https://github.com/textmate/textmate Textastic http://www.textasticapp.com/ SimpleEdit http://simpleeditapp.com/ PaintCode http://www.paintcodeapp.com/ Vim http://www.vim.org/

Slide 83

Slide 83 text

No content

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

Bad Karma

Slide 86

Slide 86 text

Lack of “const correctness” / not completely functional Almost no docs about the standard library Lack of extensive dynamic type information Changes every week (well, almost.)

Slide 87

Slide 87 text

More Information

Slide 88

Slide 88 text

Blogs (1/2) Apple https://developer.apple.com/swift/blog/ Erica Sadun http://ericasadun.com/ Mattt Thompson http://swifthipster.com/! Mike Ash https://www.mikeash.com/pyblog/

Slide 89

Slide 89 text

Blogs (2/2) Airspeed Velocity http://airspeedvelocity.net/ Alexandros Salazar http://nomothetis.svbtle.com/ David J Peacock http://davidjpeacock.ca/ sketchyTech http://sketchytech.blogspot.com/ Swift Studies http://www.swift-studies.com/

Slide 90

Slide 90 text

Weekly Newsletters Natasha the Robot http://natashatherobot.com/ Swift Dev Weekly http://swiftdevweekly.com/ iOS Dev Weekly http://iosdevweekly.com/

Slide 91

Slide 91 text

Code FlappySwift https://github.com/jurvis/FlappySwift Alamofire https://github.com/Alamofire/Alamofire Swiftz https://github.com/maxpow4h/swiftz Dollar https://github.com/ankurp/Dollar.swift Quick BDD https://github.com/Quick/Quick

Slide 92

Slide 92 text

Other Platforms RemObjects Silver 
 http://www.remobjects.com/elements/silver/ Swift-X http://swift-x.org/ Swift on your browser http://swiftstub.com/

Slide 93

Slide 93 text

Quick Help GitHub 
 https://github.com/github/swift-style-guide Cheatsheet 
 http://www.raywenderlich.com/73967/swift-cheat-sheet- and-quick-reference Closure Syntax
 http://fuckingclosuresyntax.com/ Playground Builder
 http://jasonsandmeyer.com/playgrounds/

Slide 94

Slide 94 text

Books

Slide 95

Slide 95 text

Upcoming Books

Slide 96

Slide 96 text

More Books jamesonquave.com/swiftebook raywenderlich.com/store/swift-tutorials-bundle

Slide 97

Slide 97 text

Classics

Slide 98

Slide 98 text

Thus spake the master programmer:

Slide 99

Slide 99 text

It is time for you to leave.

Slide 100

Slide 100 text

Thanks!

Slide 101

Slide 101 text

Questions?

Slide 102

Slide 102 text

Credits The Tao of Programming
 http://canonical.org/~kragen/tao-of- programming.html People I follow on Twitter