Marc Brown - Swift: The Basics

Marc Brown - Swift: The Basics

Marc Brown presenting at the June 2014 Brooklyn Swift Developers Meetup: http://meetup.com/Brooklyn-Swift-Developers/events/187580592

Video: https://vimeo.com/100767308
Source code: https://github.com/marcdown/SwiftPlayground

Transcript

  1. Brooklyn Swift Developers Meetup June 17, 2014 Swift: The Basics

  2. WWDC 2014 Brooklyn Swift Developers Meetup

  3. “And One More Thing…” Brooklyn Swift Developers Meetup

  4. Early Reactions Brooklyn Swift Developers Meetup

  5. Early Reactions Brooklyn Swift Developers Meetup

  6. Early Reactions Brooklyn Swift Developers Meetup

  7. Early Reactions Brooklyn Swift Developers Meetup “HOLY FUCK” - me

  8. Early Reactions Brooklyn Swift Developers Meetup “FUCK YEAH” - me

    5 min later
  9. Early Reactions Brooklyn Swift Developers Meetup

  10. Early Reactions Brooklyn Swift Developers Meetup

  11. Early Reactions Brooklyn Swift Developers Meetup

  12. Early Reactions Brooklyn Swift Developers Meetup

  13. Early Reactions Brooklyn Swift Developers Meetup

  14. Swift Brooklyn Swift Developers Meetup

  15. Swift Brooklyn Swift Developers Meetup Convenience of a Modern Scripting

    language with the Performance of Objective-C
  16. Swift vs. Objective-C Brooklyn Swift Developers Meetup

  17. Swift vs. Objective-C Brooklyn Swift Developers Meetup Namespaces • Class

    names scoped to module (ie. framework) • No more class prefixes
  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. 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. 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. Playground Brooklyn Swift Developers Meetup

  22. Playground Brooklyn Swift Developers Meetup • Interactive coding environment for

    testing • Immediate feedback
  23. Brooklyn Swift Developers Meetup

  24. DEMO Brooklyn Swift Developers Meetup

  25. Questions? Brooklyn Swift Developers Meetup

  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. Github: https://github.com/marcdown Twitter: @heymarcbrown Source: https://github.com/marcdown/SwiftPlayground Brooklyn Swift Developers Meetup

    Thanks!