Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift Introduction to Swift in Ruby
Search
Joseph Ku
June 17, 2014
Technology
0
150
Swift Introduction to Swift in Ruby
2014-06-17 Presented on Ruby Tuesday #29
Joseph Ku
June 17, 2014
Tweet
Share
More Decks by Joseph Ku
See All by Joseph Ku
R&B: When Ruby Met Bitcoin
joseph
0
190
第一次去 WWDC 就上手
joseph
0
200
手機遊戲開發的兩三事
joseph
0
110
RubyMotion Gets A Cool New Friend: mruby on iOS
joseph
2
820
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
920
Other Decks in Technology
See All in Technology
20240912 JJUGナイトセミナー
mii1004
0
140
Next.js のページ遷移を全力で止める
ypresto
8
3.5k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
5
46k
Kubernetesって何? -大規模なKubernetesを運用するKubernetes as a Serviceチームの話を添えて-
lycorptech_jp
PRO
0
140
Cloud Run と GitHub Template Repository による軽量なアプリケーションプラットフォーム/ #nikkei_tech_talk
nikkei_engineer_recruiting
0
110
リアルお遍路+SORACOM IoT
ozk009
1
140
DevRelの始め方
moongift
PRO
2
400
PDF Viewer作成の今までとこれから
hunachi
0
480
開発者の定量・定性データを組み合わせて開発者体験を把握するための取り組み
ham0215
1
150
テスト”ケース”駆動開発 で手戻りをなくそう
ryohma0510
0
330
Discovering AI Models
picardparis
4
3.9k
公共交通データとアプリ制作 - Mini Tokyo 3D の初期制作過程を振り返る
nagix
0
110
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
Debugging Ruby Performance
tmm1
72
12k
Happy Clients
brianwarren
96
6.6k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
YesSQL, Process and Tooling at Scale
rocio
167
14k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
89
16k
Music & Morning Musume
bryan
46
6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.3k
A designer walks into a library…
pauljervisheath
201
24k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
1
55
From Idea to $5000 a Month in 5 Months
shpigford
379
46k
Building an army of robots
kneath
302
42k
Transcript
Swift Introduction to Swift in Ruby
@josephku
None
None
370,000
Safe Modern Power
None
None
No base class
@objc
Playground
Visual REPL
Use constant
let var
Unicode
π
String Interpolation
let name = "Afu" let age = 3 let greetings
= "Hi! My name is \(name). My human age is \(age * 7)" println(greetings)
puts "Hi! I am #{name}. My human age is #{age
* 7}"
Array & Dictionary
Array & Hash
1..10 1…10
if true { println("only me!") }
Functional Programming
Structure & Class
Extensions
500.repeatitions { println("Me again!") }
500.times { puts "Me again!" }
Tuple
let someTuple: (Double, Double) = (3.14159, 2.71828)
?
var serverResponseCode: Int? = 404 serverResponseCode = nil
Optional Chaining
num = paul.residence?.address?.buildingNumber?.toInt()
RubyMotion
C’mon, it’s Ruby!!
?
Thank you!