Brooklyn Swift Developers Meetup
June 17, 2014
Swift: The Basics
WWDC 2014
Brooklyn Swift Developers Meetup
“And One More Thing…”
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
“HOLY FUCK”
- me
Early Reactions
Brooklyn Swift Developers Meetup
“FUCK YEAH”
- me 5 min later
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Early Reactions
Brooklyn Swift Developers Meetup
Swift
Brooklyn Swift Developers Meetup
Swift
Brooklyn Swift Developers Meetup
Convenience of a Modern
Scripting language with the
Performance of Objective-C
Swift vs. Objective-C
Brooklyn Swift Developers Meetup
Swift vs. Objective-C
Brooklyn Swift Developers Meetup
Namespaces

• Class names scoped to module
(ie. framework)

• No mo...
Swift vs. Objective-C
Brooklyn Swift Developers Meetup
Type Safety

• Compiler performs type checks
to find mismatched type...
Swift vs. Objective-C
Brooklyn Swift Developers Meetup
Closures

• Nameless function constructed
as another function's arg...
Swift vs. Objective-C
Brooklyn Swift Developers Meetup
Tuples

• Group multiple values to single value

• Supports multipl...
Playground
Brooklyn Swift Developers Meetup
Playground
Brooklyn Swift Developers Meetup
• Interactive coding environment for testing

• Immediate feedback
Brooklyn Swift Developers Meetup
DEMO
Brooklyn Swift Developers Meetup
Questions?
Brooklyn Swift Developers Meetup
Resources
Brooklyn Swift Developers Meetup
• The Swift Programming Language

https://itunes.apple.com/us/book/swift-progra...
Github: https://github.com/marcdown

Twitter: @creativemessdev

!
Source: https://github.com/marcdown/SwiftPlayground
Broo...
Upcoming SlideShare
Loading in …5
×

Swift: The Basics

1,102 views

Published on

June 2014 Brooklyn Swift Developers Meetup: http://www.meetup.com/Brooklyn-Swift-Developers/events/187580592

Published in: Software, Technology
  • Be the first to comment

Swift: The Basics

  1. 1. Brooklyn Swift Developers Meetup June 17, 2014 Swift: The Basics
  2. 2. WWDC 2014 Brooklyn Swift Developers Meetup
  3. 3. “And One More Thing…” Brooklyn Swift Developers Meetup
  4. 4. Early Reactions Brooklyn Swift Developers Meetup
  5. 5. Early Reactions Brooklyn Swift Developers Meetup
  6. 6. Early Reactions Brooklyn Swift Developers Meetup
  7. 7. Early Reactions Brooklyn Swift Developers Meetup “HOLY FUCK” - me
  8. 8. Early Reactions Brooklyn Swift Developers Meetup “FUCK YEAH” - me 5 min later
  9. 9. Early Reactions Brooklyn Swift Developers Meetup
  10. 10. Early Reactions Brooklyn Swift Developers Meetup
  11. 11. Early Reactions Brooklyn Swift Developers Meetup
  12. 12. Early Reactions Brooklyn Swift Developers Meetup
  13. 13. Early Reactions Brooklyn Swift Developers Meetup
  14. 14. Swift Brooklyn Swift Developers Meetup
  15. 15. Swift Brooklyn Swift Developers Meetup Convenience of a Modern Scripting language with the Performance of Objective-C
  16. 16. Swift vs. Objective-C Brooklyn Swift Developers Meetup
  17. 17. Swift vs. Objective-C Brooklyn Swift Developers Meetup Namespaces • Class names scoped to module (ie. framework) • No more class prefixes
  18. 18. Swift vs. Objective-C Brooklyn Swift Developers Meetup Type Safety • Compiler performs type checks to find mismatched types • Allows for type inference var heyStr = “Hey”
  19. 19. Swift vs. Objective-C Brooklyn Swift Developers Meetup Closures • Nameless function constructed as another function's argument • Equivalent to Blocks numbers.map({ (number: Int) -> Int in let result = 3 * number return result })
  20. 20. Swift vs. Objective-C Brooklyn Swift Developers Meetup Tuples • Group multiple values to single value • Supports multiple types let someTuple = (10, true, “Hello”) // type (Int, Bool, String) let anotherTuple = (arg1: 100, arg2: “Hi”) // anotherTuple.arg1, anotherTuple.arg2
  21. 21. Playground Brooklyn Swift Developers Meetup
  22. 22. Playground Brooklyn Swift Developers Meetup • Interactive coding environment for testing • Immediate feedback
  23. 23. Brooklyn Swift Developers Meetup
  24. 24. DEMO Brooklyn Swift Developers Meetup
  25. 25. Questions? Brooklyn Swift Developers Meetup
  26. 26. Resources Brooklyn Swift Developers Meetup • The Swift Programming Language
 https://itunes.apple.com/us/book/swift-programming-language/ id881256329?mt=11 • WWDC 2014 Videos
 https://developer.apple.com/videos/wwdc/2014 • Ray Wenderlich Tutorials
 http://www.raywenderlich.com/tutorials • Swift Video Tutorials
 http://swiftvideotutorials.com
  27. 27. Github: https://github.com/marcdown Twitter: @creativemessdev ! Source: https://github.com/marcdown/SwiftPlayground Brooklyn Swift Developers Meetup Thanks!

×