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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Joseph Ku
June 17, 2014
Technology
0
160
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
250
第一次去 WWDC 就上手
joseph
0
210
手機遊戲開發的兩三事
joseph
0
120
RubyMotion Gets A Cool New Friend: mruby on iOS
joseph
2
990
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
1k
Other Decks in Technology
See All in Technology
AWS Devops Agent ~ 自動調査とSlack統合をやってみた! ~
kubomasataka
3
310
30万人の同時アクセスに耐えたい!新サービスの盤石なリリースを支える負荷試験 / SRE Kaigi 2026
genda
1
110
What happened to RubyGems and what can we learn?
mikemcquaid
0
190
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
140
オープンウェイトのLLMリランカーを契約書で評価する / searchtechjp
sansan_randd
3
550
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
セキュリティ はじめの一歩
nikinusu
0
1.4k
最速で価値を出すための プロダクトエンジニアのツッコミ術
kaacun
1
500
IaaS/SaaS管理における SREの実践 - SRE Kaigi 2026
bbqallstars
4
1.2k
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
41k
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
110
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
0
650
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
130
Google's AI Overviews - The New Search
badams
0
900
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
160
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
Visualization
eitanlees
150
17k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
It's Worth the Effort
3n
188
29k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
エンジニアに許された特別な時間の終わり
watany
106
230k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Between Models and Reality
mayunak
1
180
Crafting Experiences
bethany
1
44
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!