INTRODUCTION TO SWIFT PROGRAMMING LANGUAGE
Presented by Son Bui
Savvycom JSC
September 10, 2015
Outline
1. Introduction to Swift1. Introduction to Swift
2. Basic Syntax2. Basic Syntax
3. Playground in Swift3. Playground in Swift
4. Advantage & Disadvantage4. Advantage & Disadvantage
5. Demonstration5. Demonstration
6. Is Savvycom ready for Swift?6. Is Savvycom ready for Swift?
1. Introduction to Swift
An object-oriented and
compiled programming
language
A “fast, modern, safe,
interactive” programming
language.
Developed by Chris
Lattner in 2010
First introduced at
Apple’s 2014 Worldwide
Developer Conference.
Current version: Swift 2.0.
2. Basic syntax
 Variables, Constants
2. Basic syntax
 Smart type inference and no semicolons
* In Objective-C:
* In Swift:
2. Basic syntax
 Functions
 No more brackets, using dot for method calls
2. Basic syntax
See more at:
https://developer.apple.com/swift/
3. Playground in Swift
Print the actual result immediately without the
overheads of complication.
4. Advantages and disadvantages of Swift
Advantage
 Strong typing.
 More simple syntax than
Objective-C.
 Fewer lines of code than
Objective-C.
 Faster than Objective-C.
Disadvantage
ˣ Too young.
ˣ Resources is quite little.
ˣ Developers have to start
with new things.
ˣ Make Apple application
environment slower.
5. Demonstration
A simple application created by Swift programming
language.
6. Is Savvycom ready for Swift?
How about current projects?
How about upcoming projects?
How much time do we need?
Son Bui, Savvycom JSC.
12th
floor, Viet A Tower
Duy Tan Street, Cau Giay,
Hanoi, Vietnam
Swift Introduction

Swift Introduction

  • 1.
    INTRODUCTION TO SWIFTPROGRAMMING LANGUAGE Presented by Son Bui Savvycom JSC September 10, 2015
  • 2.
    Outline 1. Introduction toSwift1. Introduction to Swift 2. Basic Syntax2. Basic Syntax 3. Playground in Swift3. Playground in Swift 4. Advantage & Disadvantage4. Advantage & Disadvantage 5. Demonstration5. Demonstration 6. Is Savvycom ready for Swift?6. Is Savvycom ready for Swift?
  • 3.
    1. Introduction toSwift An object-oriented and compiled programming language A “fast, modern, safe, interactive” programming language. Developed by Chris Lattner in 2010 First introduced at Apple’s 2014 Worldwide Developer Conference. Current version: Swift 2.0.
  • 4.
    2. Basic syntax Variables, Constants
  • 5.
    2. Basic syntax Smart type inference and no semicolons * In Objective-C: * In Swift:
  • 6.
    2. Basic syntax Functions  No more brackets, using dot for method calls
  • 7.
    2. Basic syntax Seemore at: https://developer.apple.com/swift/
  • 8.
    3. Playground inSwift Print the actual result immediately without the overheads of complication.
  • 9.
    4. Advantages anddisadvantages of Swift Advantage  Strong typing.  More simple syntax than Objective-C.  Fewer lines of code than Objective-C.  Faster than Objective-C. Disadvantage ˣ Too young. ˣ Resources is quite little. ˣ Developers have to start with new things. ˣ Make Apple application environment slower.
  • 10.
    5. Demonstration A simpleapplication created by Swift programming language.
  • 11.
    6. Is Savvycomready for Swift? How about current projects? How about upcoming projects? How much time do we need?
  • 12.
    Son Bui, SavvycomJSC. 12th floor, Viet A Tower Duy Tan Street, Cau Giay, Hanoi, Vietnam