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
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
システムのアラート調査をサポートするAI Agentの紹介/Introduction to an AI Agent for System Alert Investigation
taddy_919
2
1.3k
メルカリのAI活用を支えるAIセキュリティ
s3h
8
6k
toCプロダクトにおけるAI機能開発のしくじりと学び / ai-product-failures-and-learnings
rince
6
5.1k
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
100
しろおびセキュリティへ ようこそ
log0417
0
250
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
110
入社1ヶ月でデータパイプライン講座を作った話
waiwai2111
1
210
re:Inventで出たインフラエンジニアが嬉しかったアップデート
nagisa53
4
230
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
41k
Vitest Highlights in Angular
rainerhahnekamp
0
120
Azure SRE Agent x PagerDutyによる近未来インシデント対応への期待 / The Future of Incident Response: Azure SRE Agent x PagerDuty
aeonpeople
0
270
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
1
370
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
270
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Claude Code のすすめ
schroneko
67
210k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
54
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Become a Pro
speakerdeck
PRO
31
5.8k
Optimizing for Happiness
mojombo
379
71k
Mind Mapping
helmedeiros
PRO
0
69
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
My Coaching Mixtape
mlcsv
0
45
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!