Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Server-Side_Swift.pdf

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

 Server-Side_Swift.pdf

Avatar for Mbalenhle Ndaba

Mbalenhle Ndaba

July 26, 2019

More Decks by Mbalenhle Ndaba

Other Decks in Technology

Transcript

  1. Background Started - 2010 2014 - release Swift 1.0 Swift

    2.0 - 2015 Most Loved Programming Language 2016 - Swift 3.0 Swift 4.0 - 2017 2019 - Swift 5.0
  2. Type Safety Type Safety Open Source Choosing Swift Modern Easy

    to learn Fast and Powerful Objective-C, Rust, Ruby, Python, etc
  3. Swift Features Generics Protocol extensions First class functions Tuples -

    multiple return values Structs that support methods, extensions, and protocols Enums support pattern matching Functional programming
  4. Designed for Safety Arrays and integers are checked for overflow

    Memory is automatically managed Variables are always initialized before use Prevents runtime crashes Optionals (?)
  5. Vapor Features HTTP Client and Server Fluent ORM Leaf Templating

    - HTML Async / non-blocking IO Supports Codable
  6. Useful Commands NEW PROJECT vapor new HelloVapor BUILD PROJECT vapor

    build RUN PROJECT vapor run UPDATE DEPENDANCIES vapor update