Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Swift Introduction to Swift in Ruby
Joseph Ku
June 17, 2014
Technology
0
120
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
81
第一次去 WWDC 就上手
joseph
0
180
手機遊戲開發的兩三事
joseph
0
97
RubyMotion Gets A Cool New Friend: mruby on iOS
joseph
2
540
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
620
Other Decks in Technology
See All in Technology
Building smarter apps with machine learning, from magic to reality
picardparis
4
3.2k
FoodTechにおける商流・金流・物流の進化/Evolution of Commercial, Financial, and Logistics in FoodTech
dskst
0
410
データ分析で切り拓け! エンジニアとしてのデータ分析職キャリア戦略
ksnt
0
160
20220622_FinJAWS_あのときにAWSがあったらこうできた
taketakekaho
0
110
Oracle Cloud Infrastructure:2022年6月度サービス・アップデート
oracle4engineer
PRO
0
150
Accelerated Computing for NLP on AWS
shokout
1
220
誰が正解を知っているのか / Who knows the right answer
takaking22
1
250
Retca Cloud
bau
0
520
PUTとPOSTどっち使う?
hankehly
0
270
Rethinking how distributed applications are built
tillrohrmann
0
100
【Pythonデータ分析勉強会#33】「DearPyGuiに入門しました」の続き~Image-Processing-Node-Editor~
kazuhitotakahashi
0
160
Data in Google I/O - IO Extended GDG Seoul
kennethanceyer
0
150
Featured
See All Featured
Creatively Recalculating Your Daily Design Routine
revolveconf
207
10k
Bootstrapping a Software Product
garrettdimon
296
110k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
19
1.4k
Keith and Marios Guide to Fast Websites
keithpitt
404
21k
How to train your dragon (web standard)
notwaldorf
58
3.9k
Gamification - CAS2011
davidbonilla
75
3.9k
Web Components: a chance to create the future
zenorocha
303
40k
Why You Should Never Use an ORM
jnunemaker
PRO
47
7.6k
Designing for humans not robots
tammielis
241
23k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
349
27k
A designer walks into a library…
pauljervisheath
196
16k
Designing with Data
zakiwarfel
91
3.9k
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!