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
From Rails to Node.js + Backbone: The Rewrite o...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Hsiao-Ting Yu
May 18, 2013
Technology
2
210
From Rails to Node.js + Backbone: The Rewrite of TouchLimit
JSDC.tw 2013 Lightning Talks.
Hsiao-Ting Yu
May 18, 2013
Tweet
Share
More Decks by Hsiao-Ting Yu
See All by Hsiao-Ting Yu
有人用了更頭大: OpenStreetMap 的社群營運挑戰
littlebtc
0
79
COSCUP 17 Lightning Talk
littlebtc
0
200
[COSCUP 2014] Take Back the Map to People: When OpenStreetMap Meets Taiwan Social Issues
littlebtc
0
230
[SOTM.TW 2013] The mapping status of bus lines in Taiwan
littlebtc
0
230
(Mobile) App and Open Source: Kamigami Client on Various Platforms
littlebtc
0
500
Mobile Web Issues: Limitation and Experience
littlebtc
1
290
Other Decks in Technology
See All in Technology
VRTと真面目に向き合う
hiragram
1
520
2026年はチャンキングを極める!
shibuiwilliam
8
1.7k
JuliaTokaiとしてはこれが最後かもしれない(仮) for NGK2026S
antimon2
0
130
IaaS/SaaS管理における SREの実践 - SRE Kaigi 2026
bbqallstars
0
550
みんなだいすきALB、NLBの 仕組みから最新機能まで総おさらい / Mastering ALB & NLB: Internal Mechanics and Latest Innovations
kaminashi
0
150
re:Inventで出たインフラエンジニアが嬉しかったアップデート
nagisa53
4
230
メルカリのAI活用を支えるAIセキュリティ
s3h
7
5.4k
しろおびセキュリティへ ようこそ
log0417
0
200
The Engineer with a Three-Year Cycle - 2
e99h2121
0
210
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
セキュリティ はじめの一歩
nikinusu
0
1.3k
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
200
[SF Ruby Conf 2025] Rails X
palkan
0
730
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
400
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
230
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
160
Designing for humans not robots
tammielis
254
26k
Done Done
chrislema
186
16k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
190
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
150
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
150
Transcript
從 Rails 到 Node + Backbone: TouchLimit 砍掉重練之路 Littlebtc /
笨笨的⼩小B
http://www.briareus.tw/ -> My Job
http://moztw.org/ -> I contributed to
http://zh-tw.twitch.tv/kevin51202 Jubeat 台灣全國⼤大會決賽
TouchLimit 紀錄、分析成績的⼯工具
None
2011: Rails + Resque MongoDB + Redis
遊戲⼀一年改版⼀一次
砍掉重練 MongoDB 不盡理想 Rails 有點肥 Rails Web MongoDB Redis Resque
worker
PostgreSQL 猛 Node.js 潮 “AJAX” rocks PostgreSQL Redis 砍掉重練 Node.js
Express Node.js Kue Backbone.js medicalwei -> littlebtc
分開開發 做好合起來
克服萬難
World of async -> Chain the promises! when(initializeWork({ "id": id,
...} )) .then(getPreviousRecord) .then(getBasicData) .then(getMusicData) .then(handleData, handleError) littlebtc
PostgreSQL Array -> pg 9.2 有 JSON,硬幹 littlebtc
iconv -> JSDOM 遇到 SHIFT-JIS 和 CP932 不⼀一樣的問題 爛了⼀一個星期才發現 orz
littlebtc
樂曲會不定時增減 需要對應⽅方式 littlebtc
⽇日本 VPS 1G Mem worker: iconv + JSDOM 佔⽤用太多 Memory
worker express Server Load 不重,所以還 OK V8 GC 未妥善設定可能是主因
Backbone 很強⼤大 但也很難寫 medicalwei
RWD: 聽起來很美好 做起來累死你 medicalwei
Android 和 iOS 瀏覽器有超多 Bug medicalwei
None
None
http://touchlim.it/ :)