SlideShare una empresa de Scribd logo
1 de 32
Descargar para leer sin conexión
1 
Trinh Nguyen 
2014.12.11
2
3 
The previous WWDCs 
WWDC 2014
4 
WWDC 2014
5
Objective C 
//ex1 
CGPoint aPoint = CGPointMake(9.0, 10.0); 
//ex2 
UIView *aView = [[UIView alloc] init]; 
6
And Swift 
//ex1 
let aPoint = CGPointMake(9.0, 10.0) 
//or equivalently: 
let aPoint: CGPoint = CGPointMake(9.0, 10.0) //ex2 
var aView = UIView() 
//or equivalently: 
let aView: UIView = UIView() 
3 characters 
7
And Swift 
//ex1 
let aPoint = CGPointMake(9.0, 10.0) 
//or equivalently: 
let aPoint: CGPoint = CGPointMake(9.0, 10.0) //ex2 
var aView = UIView() 
//or equivalently: 
let aView: UIView = UIView() 
3 characters 
8 
Swift performs type checks when compiling your code and flags any mismatched types as errors. This enables you to catch and fix errors as early as possible in the development process.
; 
9
; 
10
11
12
13
Swift comes with many features to make your code fairly human readable: 
•Closures unified with function pointers 
•Tuples and multiple return values 
•Generics 
•Fast and concise iteration over a range or collection 
•Structs that support methods, extensions, protocols. 
•Functional programming patterns. 
14
15
16
17 
https://www.youtube.com/watch?v=G4rDwr03VRQ#t=162
18 
https://www.youtube.com/watch?v=G4rDwr03VRQ#t=162
19 
https://www.youtube.com/watch?v=G4rDwr03VRQ#t=162
20
21
22
24
25
26
https://www.youtube.com/watch?v=w2IbLZLWCJ0&feature=youtu.be 
27
28
29
30
31
Q - A 
32

Más contenido relacionado

Destacado

Quiles ismael volumen 10 - plotino (1987)
Quiles ismael   volumen 10 - plotino (1987)Quiles ismael   volumen 10 - plotino (1987)
Quiles ismael volumen 10 - plotino (1987)
Andres Frias
 
The Predictable Passages of Organizational Transformation
The Predictable Passages of Organizational TransformationThe Predictable Passages of Organizational Transformation
The Predictable Passages of Organizational Transformation
mikegggg
 

Destacado (15)

Las tres r
Las tres rLas tres r
Las tres r
 
Monica Homework
Monica HomeworkMonica Homework
Monica Homework
 
Echipa: Green Fighters - Concursul științific Eroii Viitorului
Echipa: Green Fighters - Concursul științific Eroii ViitoruluiEchipa: Green Fighters - Concursul științific Eroii Viitorului
Echipa: Green Fighters - Concursul științific Eroii Viitorului
 
Scuola di Liberalismo 2015
Scuola di Liberalismo 2015Scuola di Liberalismo 2015
Scuola di Liberalismo 2015
 
Syllabus of cybershiksha 2
Syllabus of cybershiksha 2Syllabus of cybershiksha 2
Syllabus of cybershiksha 2
 
Korea times 3 3-14
Korea times 3 3-14Korea times 3 3-14
Korea times 3 3-14
 
Evolution of the 20+ year old upper salt fork watershed
Evolution of the 20+ year old upper salt fork watershedEvolution of the 20+ year old upper salt fork watershed
Evolution of the 20+ year old upper salt fork watershed
 
Quiles ismael volumen 10 - plotino (1987)
Quiles ismael   volumen 10 - plotino (1987)Quiles ismael   volumen 10 - plotino (1987)
Quiles ismael volumen 10 - plotino (1987)
 
The Predictable Passages of Organizational Transformation
The Predictable Passages of Organizational TransformationThe Predictable Passages of Organizational Transformation
The Predictable Passages of Organizational Transformation
 
Ingenieria y Sociedad
 Ingenieria y Sociedad Ingenieria y Sociedad
Ingenieria y Sociedad
 
RIS Media Cover Story
RIS Media Cover StoryRIS Media Cover Story
RIS Media Cover Story
 
Busca pesquisa
Busca pesquisaBusca pesquisa
Busca pesquisa
 
Prova regal Xavi
Prova regal XaviProva regal Xavi
Prova regal Xavi
 
Fratelo
FrateloFratelo
Fratelo
 
EX H-Compensation
EX H-CompensationEX H-Compensation
EX H-Compensation
 

Similar a Swift short tour - Interesting language

ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)
ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)
ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)
Ontico
 

Similar a Swift short tour - Interesting language (20)

Open Cv 2005 Q4 Tutorial
Open Cv 2005 Q4 TutorialOpen Cv 2005 Q4 Tutorial
Open Cv 2005 Q4 Tutorial
 
ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)
ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)
ApplicationCoordinator для навигации между экранами / Павел Гуров (Avito)
 
Puppeteer - A web scraping & UI Testing Tool
Puppeteer - A web scraping & UI Testing ToolPuppeteer - A web scraping & UI Testing Tool
Puppeteer - A web scraping & UI Testing Tool
 
Visual Component Testing -- w/ Gil Tayar (Applitools) and Gleb Bahmutov (Cyp...
Visual Component Testing  -- w/ Gil Tayar (Applitools) and Gleb Bahmutov (Cyp...Visual Component Testing  -- w/ Gil Tayar (Applitools) and Gleb Bahmutov (Cyp...
Visual Component Testing -- w/ Gil Tayar (Applitools) and Gleb Bahmutov (Cyp...
 
Projet d'accès aux résultats des étudiant via client mobile
Projet d'accès aux résultats des étudiant via client mobile Projet d'accès aux résultats des étudiant via client mobile
Projet d'accès aux résultats des étudiant via client mobile
 
Migrating Objective-C to Swift
Migrating Objective-C to SwiftMigrating Objective-C to Swift
Migrating Objective-C to Swift
 
Declarative presentations UIKonf
Declarative presentations UIKonfDeclarative presentations UIKonf
Declarative presentations UIKonf
 
Lab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsLab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer Graphics
 
Enhance your world with ARKit. UA Mobile 2017.
Enhance your world with ARKit. UA Mobile 2017.Enhance your world with ARKit. UA Mobile 2017.
Enhance your world with ARKit. UA Mobile 2017.
 
Visage Android Hands-on Lab
Visage Android Hands-on LabVisage Android Hands-on Lab
Visage Android Hands-on Lab
 
IBDesignable - CocoaConf Seattle 2014
IBDesignable - CocoaConf Seattle 2014IBDesignable - CocoaConf Seattle 2014
IBDesignable - CocoaConf Seattle 2014
 
Programming with JavaFX
Programming with JavaFXProgramming with JavaFX
Programming with JavaFX
 
Modern Web Developement
Modern Web DevelopementModern Web Developement
Modern Web Developement
 
Introductionandgreetings
IntroductionandgreetingsIntroductionandgreetings
Introductionandgreetings
 
CocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads Toulouse - Guillaume Cerquant - UIViewCocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads Toulouse - Guillaume Cerquant - UIView
 
Leverage CompletableFutures to handle async queries. DevNexus 2022
Leverage CompletableFutures to handle async queries. DevNexus 2022Leverage CompletableFutures to handle async queries. DevNexus 2022
Leverage CompletableFutures to handle async queries. DevNexus 2022
 
Test api
Test apiTest api
Test api
 
ES2015 workflows
ES2015 workflowsES2015 workflows
ES2015 workflows
 
Open gles
Open glesOpen gles
Open gles
 
Reusing your frontend JS on the server with V8/Rhino
Reusing your frontend JS on the server with V8/RhinoReusing your frontend JS on the server with V8/Rhino
Reusing your frontend JS on the server with V8/Rhino
 

Último

Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
mbmh111980
 

Último (20)

Workforce Efficiency with Employee Time Tracking Software.pdf
Workforce Efficiency with Employee Time Tracking Software.pdfWorkforce Efficiency with Employee Time Tracking Software.pdf
Workforce Efficiency with Employee Time Tracking Software.pdf
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdf
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
 
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
 
INGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by DesignINGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by Design
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 
SQL Injection Introduction and Prevention
SQL Injection Introduction and PreventionSQL Injection Introduction and Prevention
SQL Injection Introduction and Prevention
 
How to pick right visual testing tool.pdf
How to pick right visual testing tool.pdfHow to pick right visual testing tool.pdf
How to pick right visual testing tool.pdf
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
 
What need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java DevelopersWhat need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java Developers
 
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product UpdatesGraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
 
IT Software Development Resume, Vaibhav jha 2024
IT Software Development Resume, Vaibhav jha 2024IT Software Development Resume, Vaibhav jha 2024
IT Software Development Resume, Vaibhav jha 2024
 
KLARNA - Language Models and Knowledge Graphs: A Systems Approach
KLARNA -  Language Models and Knowledge Graphs: A Systems ApproachKLARNA -  Language Models and Knowledge Graphs: A Systems Approach
KLARNA - Language Models and Knowledge Graphs: A Systems Approach
 
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfA Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
 
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Kraków
 
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
 
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
 

Swift short tour - Interesting language