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
220
第一次去 WWDC 就上手
joseph
0
210
手機遊戲開發的兩三事
joseph
0
120
RubyMotion Gets A Cool New Friend: mruby on iOS
joseph
2
920
RubyMotion: Hack Your iOS App Like Never Before
joseph
5
1k
Other Decks in Technology
See All in Technology
Vibe Codingの裏で、 考える力をどう取り戻すか
csekine
0
440
Amazon DevOps Guru のベースラインを整備して1ヶ月ほど運用してみた #jawsug_asa / Amazon DevOps Guru trial
masahirokawahara
3
210
Tenstorrent HW/SW 概要説明
tenstorrent_japan
0
240
Test Smarter, Not Harder: Achieving Confidence in Complex Distributed Systems
eliasnogueira
1
130
データ戦略部門 紹介資料
sansan33
PRO
1
3.1k
Data Hubグループ 紹介資料
sansan33
PRO
0
1.8k
組織とセキュリティ文化と、自分の一歩
maimyyym
3
1.4k
JavaのMCPサーバーで体験するAIエージェントの世界
tatsuya1bm
1
210
Java 30周年記念! Javaの30年をふりかえる
skrb
4
2.7k
Flutterアプリを⾃然⾔語で操作する
yukisakai1225
0
210
Cursor Meetup Tokyo
iamshunta
5
1.5k
Grafana MCP serverでなんかし隊 / Try Grafana MCP server
kohbis
0
220
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
299
21k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Navigating Team Friction
lara
186
15k
Adopting Sorbet at Scale
ufuk
77
9.4k
Into the Great Unknown - MozCon
thekraken
39
1.8k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
180
53k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
15
900
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
Designing for Performance
lara
609
69k
RailsConf 2023
tenderlove
30
1.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
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!