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
Hsiao-Ting Yu
May 18, 2013
Technology
2
200
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
75
COSCUP 17 Lightning Talk
littlebtc
0
190
[COSCUP 2014] Take Back the Map to People: When OpenStreetMap Meets Taiwan Social Issues
littlebtc
0
220
[SOTM.TW 2013] The mapping status of bus lines in Taiwan
littlebtc
0
220
(Mobile) App and Open Source: Kamigami Client on Various Platforms
littlebtc
0
440
Mobile Web Issues: Limitation and Experience
littlebtc
1
270
Other Decks in Technology
See All in Technology
AI専用のリンターを作る #yumemi_patch
bengo4com
5
2.3k
CI/CD/IaC 久々に0から環境を作ったらこうなりました
kaz29
1
210
250627 関西Ruby会議08 前夜祭 RejectKaigi「DJ on Ruby Ver.0.1」
msykd
PRO
2
400
Core Audio tapを使ったリアルタイム音声処理のお話
yuta0306
0
160
タイミーのデータモデリング事例と今後のチャレンジ
ttccddtoki
6
2k
改めてAWS WAFを振り返る~業務で使うためのポイント~
masakiokuda
1
150
Connect 100+を支える技術
kanyamaguc
0
160
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
4
280
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
26k
Flutter向けPDFビューア、pdfrxのpdfium WASM対応について
espresso3389
0
110
asken AI勉強会(Android)
tadashi_sato
0
150
一体いつからSRE NEXTがSREだけのカンファレンスだと錯覚していた? / When did you ever get the idea that SRE NEXT was a conference just for SREs?
vtryo
1
130
Featured
See All Featured
Faster Mobile Websites
deanohume
307
31k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
Facilitating Awesome Meetings
lara
54
6.4k
For a Future-Friendly Web
brad_frost
179
9.8k
Automating Front-end Workflow
addyosmani
1370
200k
Embracing the Ebb and Flow
colly
86
4.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
500
Thoughts on Productivity
jonyablonski
69
4.7k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.4k
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/ :)