Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Large Scale JavaScript Application Architecture
Search
Frontend NE
February 04, 2016
Technology
830
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Large Scale JavaScript Application Architecture
Frontend NE
February 04, 2016
More Decks by Frontend NE
See All by Frontend NE
Standardizing 'select': What the future holds for HTML - Stephanie Stimac @ FrontendNE
frontendne
4
490
CSS Regression testing - James A Lambert @ FrontendNE
frontendne
1
400
Building a design system for Lloyds Banking - Lilly Dart @ FrontendNE
frontendne
0
1.6k
What I learnt about hiring diverse teams from conducting a fully-anonymous recruitment process - Bethan Vicent
frontendne
0
360
Web Design that Doesn't Make Trans People Uncomfortable - Jessica Kelsall
frontendne
0
830
Contain yourself - Docker for developers
frontendne
2
330
Design process of a website
frontendne
0
390
What the JAMstack?
frontendne
1
1k
Talking the talk
frontendne
0
600
Other Decks in Technology
See All in Technology
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
110
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
430
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
310
自分で立ててみるLLMサービス
y_sera15
0
160
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
180
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
190
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
5.9k
今さら理解するウェブフォントver.2026
takanorip
3
690
ゲームのリアルタイム通信から見た QUIC と MoQ
segadevtech
0
110
AI時代のAPI開発を加速する品質ガードレール / API Quality Guardrails in the AI Era
yokawasa
0
190
go-sqletch
moznion
0
140
夫婦で子育てするための育児標準化
codmoninc
PRO
0
210
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
750
Producing Creativity
orderedlist
PRO
348
41k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
930
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Exploring anti-patterns in Rails
aemeredith
4
530
Optimising Largest Contentful Paint
csswizardry
37
4k
Are puppies a ranking factor?
jonoalderson
2
4k
How to make the Groovebox
asonas
2
2.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Transcript
Large Scale JavaScript Large Scale JavaScript Application Architecture Application Architecture
ahumphreys87 ahumphreys87 JavaScript Architect at Bede Gaming. JavaScript Game Framework
that powers cross platform Bingo client and Slots games. Node.js Slots Engine, Chat Server. Node.js API facade. Core contributor to Marionette.js Issue triaging, Pull Request reviews. Bug fixing. New features!
Introduction Introduction What is a large JavaScript application? Common Pitfalls.
Useful Patterns. How frameworks apply these principles. Questions???
Over 100,000 LOC? Over Xmb in size? Lots of files?
Hard to maintain What is a Large JavaScript What is a Large JavaScript Application? Application?
"A large JavaScript application is a non-trivial application that requires
significant effort to maintain and where most of the data manipulation takes place in the browser." Addy Osmani
Modularise Modularise Break the large application up. Think of logical
components. Different sections on the screen?
4 Questions 4 Questions 1. Can I reuse my modules?
2. Will my application still function if this breaks? 3. Is it testable? 4. Does it depend on anything else?
Common Pitfalls Common Pitfalls Tight coupling. Event webs. Lack of
tests.
Tight Coupling Tight Coupling Modules depend on each other. What
happens if another module breaks? Can we reuse this module? Can you test it?
Event Webs Event Webs
Often caused by tight coupling. Modules fire events between each
other. Debugging becomes difficult. Untestable.
Loosen up! Loosen up! Loosely coupled modules. They can be
reused. They don't depend on others. They are easy to test. Create a Facade. Create a Mediator.
Facade Facade
Abstracts complexity. Exposes a simple interface. bind/trigger. Modules only communicate
with the facade.
Mediator Mediator
The "brains" of the application. Performs application specific actions based
on the events. Controls what the facade listens for. Controls what the facade sends where.
The Result The Result Modules can break without breaking the
full application. Modules can be tested independently. Modules can be reused.
How do the big guns do it? How do the
big guns do it? Backbone.Radio Services Vanilla Classes Directives Services 2 way data binding Flux Action / Dispatcher Components Components. Actions Routes / Controllers
Questions??? Questions???