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
コンポーネント指向時代のJSエラートラッキング
Search
Edward Fox
May 18, 2017
Programming
1
810
コンポーネント指向時代のJSエラートラッキング
Rails Developers Meetup #1
https://rails-developers-meetup.connpass.com/event/55363/
Edward Fox
May 18, 2017
Tweet
Share
More Decks by Edward Fox
See All by Edward Fox
Priorityを制するものはローディングを制す
edwardkenfox
4
580
Lambda@Edgeを利用したサードパーティJavaScriptのカナリアリリース / Canary release using Lamdba@Edge
edwardkenfox
0
65
AWS re:Invent 2019 / Hackathon for Good 参加録
edwardkenfox
2
500
Repro basketball club
edwardkenfox
0
210
Introduction to UX Optimizer
edwardkenfox
0
79
フロントエンド開発の落とし穴 / Fallacies of Client Side Programming (2019ver)
edwardkenfox
0
260
僕とprototypeとJSONで / Me and prototype down by the JSON
edwardkenfox
0
110
クライアントサイド開発の落とし穴 / Fallacies of Client Side Programming
edwardkenfox
0
340
Beacon API ことはじめ 〜そしてkeepalive fetchへ〜 / Beacon API The Basics
edwardkenfox
0
1k
Other Decks in Programming
See All in Programming
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
4
2.2k
Server Driven Compose With Firebase
skydoves
0
320
Identifying User Idenity
moro
4
5.2k
tc39 x jsconf.jp Panel Discussion 2024
yosuke_furukawa
PRO
0
130
Sidekiqで実現する 長時間非同期処理の中断と再開 / Pausing and Resuming Long-Running Asynchronous Jobs with Sidekiq
hypermkt
6
1.6k
組織に自動テストを書く文化を根付かせる戦略(2024秋版) / Building Automated Test Culture 2024 Autumn Edition
twada
PRO
9
4.2k
GPU Hash Table | レイトレ合宿10
yknishidate
0
360
Kotlinの好きなところ
kobaken0029
0
170
Tuning GraphQL on Rails
pyama86
2
680
qmuntal/stateless のススメ
sgash708
0
100
Going Staff - Keynote edition
pragtob
0
420
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
110
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
692
190k
What's new in Ruby 2.0
geeforr
342
31k
Designing the Hi-DPI Web
ddemaree
280
34k
Making the Leap to Tech Lead
cromwellryan
131
8.9k
The Cost Of JavaScript in 2023
addyosmani
45
6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
37
1.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
How to Ace a Technical Interview
jacobian
275
23k
Designing Experiences People Love
moore
138
23k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
Ruby is Unlike a Banana
tanoku
96
11k
Become a Pro
speakerdeck
PRO
24
4.9k
Transcript
ίϯϙʔωϯτࢦ࣌ͷ JSΤϥʔτϥοΩϯά EDWARD FOX @Rails Developers Meetup 2017/05/18
λΠτϧ͔͚ͬͭͯ͜·͕͢ RailsͰϑϩϯτΛ࡞͖ͬͯͨ தͰΤϥʔऩूʹ͍ͭͯ ߟ͑ͨ͜ͱΛ͠·͢
Edward Fox - Developer @ Repro Inc. - RoR, JavaScript,
AWS - Vue.js, HTTP/2, Browsers
Rails × ϑϩϯτΤϯυ Ͱ ०ͳ
webpacker
None
None
ReactVue.jsͳͲͷ ίϯϙʔωϯτࢦͳ ϥΠϒϥϦ͕͙͢ಈ͘
ΫϥΠΞϯτͷ͕ େ͖͘ͳΔҰํɺ ΤϥʔτϥοΩϯά σόοάपΓ͕εΩͩΒ͚
ϑϩϯτͷΤϥʔΛ ૄ͔ʹ͍͚ͯ͠ͳ͍
ࠓͷ݁: Sentry ͍·͠ΐ͏
Sentry is Կ
None
1. Τϥʔʹؾ͘ 2. ΤϥʔΛཧղ͢Δ 3. ΤϥʔΛ࠶ݱ͢Δ
1. Τϥʔʹؾ͘ 2. ΤϥʔΛཧղ͢Δ 3. ΤϥʔΛ࠶ݱ͢Δ
RailsͰ༻ҙͨ͠ APIΤϯυϙΠϯτʹ JS͔Βඇಉظ௨৴ͯ͠ σʔλΛऔಘ
RailsͰఆ௨Γͷ JSONΛฦ͍ͯͯ͠ɺ ࣮σʔλΛड͚औͬͨ ΫϥΠΞϯτ͏·͘ ॲཧͰ͖͍ͯͳ͍͔
ΫϥΠΞϯτͰͷ Τϥʔൃੜ࣌ʹ - ϦΫΤετύϥϝʔλ - ελοΫτϨʔε - Τϥʔͷߦɾྻ൪߸ ͱ͍ͬͨใ͕औಘՄೳ
1. Τϥʔʹؾ͘ 2. ΤϥʔΛཧղ͢Δ 3. ΤϥʔΛ࠶ݱ͢Δ
֊ߏΛ࣋ͭ ίϯϙʔωϯτ͔Β Τϥʔ͕ൃੜ
Τϥʔͷൃੜࣗମʹ ؾ͚ͯɺΤϥʔΛ ىͨ͜͠ίϯϙʔωϯτ͕ Ͳ͏͍͏ঢ়ଶ͔Θ͔Βͳ͍
- component name - lifecycle hook - state, data, props
- localStorage ͱ͍ͬͨใ͕औಘՄೳ
Τϥʔ͕ൃੜͨ͠ͱ͖ͷ ίϯϙʔωϯτͷঢ়ଶΛ Ѳ͠ɺΤϥʔͷৄࡉΛ ཧղͰ͖Δ
1. Τϥʔʹؾ͘ 2. ΤϥʔΛཧղ͢Δ 3. ΤϥʔΛ࠶ݱ͢Δ
ΤϥʔࣗମΛཧղͰ͖ͯ ͦͷΤϥʔʹࢸΔ·Ͱͷ ྲྀΕ͕͔Βͣ ࠶ݱͰ͖ͳ͍
SentryͷBreadcrumbsΛݟΔ
None
Ϣʔβʔͷը໘ૢ࡞͕ ͑ΔͨΊ Τϥʔͷ࠶ݱ͕༰қ
Ϧιʔεͷঢ়ଶ͕URLͰදݱ Ͱ͖ͳ͍SPAͰ͋ͬͯɺ SentryʹૹΔใΛ ؆୯ʹՃͰ͖Δ
·ͱΊ
Sentry ͍·͠ΐ͏
1. Τϥʔʹؾ͘ 2. ΤϥʔΛཧղ͢Δ 3. ΤϥʔΛ࠶ݱ͢Δ
ϦονͳUIɺSPAΛ࡞ΔͳΒ ΫϥΠΞϯτͷΤϥʔΛ ͪΌΜͱऩू͠ ݎ࿚ͳRailsΞϓϦΛ࡞Ζ͏
edwardkenfox.com