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
980
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
1k
Other Decks in Technology
See All in Technology
M&Aで拡大し続けるGENDAのデータ活用を促すためのDatabricks権限管理 / AEON TECH HUB #22
genda
0
300
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
260
Knowledge Work の AI Backend
kworkdev
PRO
0
340
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
230
コールドスタンバイ構成でCDは可能か
hiramax
0
130
アラフォーおじさん、はじめてre:Inventに行く / A 40-Something Guy’s First re:Invent Adventure
kaminashi
0
200
MySQLのSpatial(GIS)機能をもっと充実させたい ~ MyNA望年会2025LT
sakaik
0
180
AIBuildersDay_track_A_iidaxs
iidaxs
4
1.6k
フィッシュボウルのやり方 / How to do a fishbowl
pauli
2
430
[PR] はじめてのデジタルアイデンティティという本を書きました
ritou
0
540
Introduce marp-ai-slide-generator
itarutomy
0
160
アプリにAIを正しく組み込むための アーキテクチャ── 国産LLMの現実と実践
kohju
1
270
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
120
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
37
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
120
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
63
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
79
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
0
360
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
210
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5k
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!