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
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
240
第一次去 WWDC 就上手
joseph
0
210
手機遊戲開發的兩三事
joseph
0
120
RubyMotion Gets A Cool New Friend: mruby on iOS
joseph
2
960
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
1k
Other Decks in Technology
See All in Technology
From Natural Language to K8s Operations: The MCP Architecture and Practice of kubectl-ai
appleboy
0
370
20251027_findyさん_音声エージェントLT
almondo_event
2
500
ストレージエンジニアの仕事と、近年の計算機について / 第58回 情報科学若手の会
pfn
PRO
4
900
ざっくり学ぶ 『エンジニアリングリーダー 技術組織を育てるリーダーシップと セルフマネジメント』 / 50 minute Engineering Leader
iwashi86
6
3.5k
DMMの検索システムをSolrからElasticCloudに移行した話
hmaa_ryo
0
280
ヘンリー会社紹介資料(エンジニア向け) / company deck for engineer
henryofficial
0
420
パフォーマンスチューニングのために普段からできること/Performance Tuning: Daily Practices
fujiwara3
2
160
コンパウンド組織のCRE #cre_meetup
layerx
PRO
1
290
戦えるAIエージェントの作り方
iwiwi
10
4.3k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
2
150
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
14
82k
入院医療費算定業務をAIで支援する:包括医療費支払い制度とDPCコーディング (公開版)
hagino3000
0
120
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Typedesign – Prime Four
hannesfritz
42
2.8k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Code Review Best Practice
trishagee
72
19k
Git: the NoSQL Database
bkeepers
PRO
431
66k
We Have a Design System, Now What?
morganepeng
53
7.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
YesSQL, Process and Tooling at Scale
rocio
173
15k
Automating Front-end Workflow
addyosmani
1371
200k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
2
150
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
630
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.7k
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!