Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
240
第一次去 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
AWS Bedrock AgentCoreで作る 1on1支援AIエージェント 〜Memory × Evaluationsによる実践開発〜
yusukeshimizu
6
400
コミューンのデータ分析AIエージェント「Community Sage」の紹介
fufufukakaka
0
490
mairuでつくるクレデンシャルレス開発環境 / Credential-less development environment using Mailru
mirakui
5
470
Challenging Hardware Contests with Zephyr and Lessons Learned
iotengineer22
0
210
文字列の並び順 / Unicode Collation
tmtms
3
580
形式手法特論:CEGAR を用いたモデル検査の状態空間削減 #kernelvm / Kernel VM Study Hokuriku Part 8
ytaka23
2
460
SSO方式とJumpアカウント方式の比較と設計方針
yuobayashi
7
670
ガバメントクラウド利用システムのライフサイクルについて
techniczna
0
190
AI-DLCを現場にインストールしてみた:プロトタイプ開発で分かったこと・やめたこと
recruitengineers
PRO
2
120
MapKitとオープンデータで実現する地図情報の拡張と可視化
zozotech
PRO
1
140
GitHub Copilotを使いこなす 実例に学ぶAIコーディング活用術
74th
3
3.1k
意外とあった SQL Server 関連アップデート + Database Savings Plans
stknohg
PRO
0
320
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
GraphQLとの向き合い方2022年版
quramy
50
14k
GitHub's CSS Performance
jonrohan
1032
470k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Balancing Empowerment & Direction
lara
5
800
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Invisible Side of Design
smashingmag
302
51k
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!