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
180
第一次去 WWDC 就上手
joseph
0
200
手機遊戲開發的兩三事
joseph
0
110
RubyMotion Gets A Cool New Friend: mruby on iOS
joseph
2
800
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
900
Other Decks in Technology
See All in Technology
Docker互換のセキュアなコンテナ実行環境「Podman」超入門
devops_vtj
6
3.2k
ここがすごいよ! AWS Systems Manager!
saichan11
0
1.8k
Git 研修 Advanced【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
200
How to Think Like a Performance Engineer
csswizardry
4
590
ABEMAにおけるLLMを用いたコンテンツベース推薦システム導入と効果検証
cyberagentdevelopers
PRO
1
750
エンジニアリングマネージャーはどう学んでいくのか #devsumi / How Do Engineering Managers Continue to Learn and Grow?
expajp
4
1.3k
[I/O Extended Android 2024] What`s new in Android 2024
kyeongwan
0
220
フルリモートワークはエンジニアの夢を叶えたか? #cm_odyssey
mamohacy
2
600
データ分析を支える技術 生成AI再入門
ishikawa_satoru
0
380
ゆめみのアクセシビリティの現在地と今後
ryokatsuse
3
290
[2024最新版]AWS Control Towerを使ったセキュアなマルチアカウント環境の作り方
hiashisan
0
270
Github Actions 로 Android 팀의 효율성 극대화
hadonghyun
0
160
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
129
32k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
26
2.1k
We Have a Design System, Now What?
morganepeng
46
7k
Embracing the Ebb and Flow
colly
81
4.3k
Building Applications with DynamoDB
mza
89
5.8k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Facilitating Awesome Meetings
lara
46
5.8k
How to Think Like a Performance Engineer
csswizardry
4
590
The Cost Of JavaScript in 2023
addyosmani
31
4.7k
5 minutes of I Can Smell Your CMS
philhawksworth
200
19k
The Pragmatic Product Professional
lauravandoore
29
6.1k
The Power of CSS Pseudo Elements
geoffreycrofte
64
5.2k
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!