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
Tyranny of Choice
Search
Matthew Bergman
November 09, 2012
Programming
0
140
Tyranny of Choice
Matthew Bergman
November 09, 2012
Tweet
Share
More Decks by Matthew Bergman
See All by Matthew Bergman
Health Myths We Tell in Tech
fotoverite
0
120
Crypto For the Masses_
fotoverite
1
97
The Blip Generation
fotoverite
0
120
Other Decks in Programming
See All in Programming
ソフトウェアの振る舞いに着目し 複雑な要件の開発に立ち向かう
rickyban
0
890
42 best practices for Symfony, a decade later
tucksaun
1
180
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
130
Thoughts and experiences on Rust and TypeScript
unvalley
2
230
テスト自動化失敗から再挑戦しチームにオーナーシップを委譲した話/STAC2024 macho
ma_cho29
1
1.3k
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
180
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
eBPF Deep Dive: Architecture and Safety Mechanisms
takehaya
12
1.4k
CSC305 Lecture 25
javiergs
PRO
0
130
短期間での新規プロダクト開発における「コスパの良い」Goのテスト戦略」 / kamakura.go
n3xem
2
160
採用事例の少ないSvelteを選んだ理由と それを正解にするためにやっていること
oekazuma
2
1k
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Italy
prof18
0
150
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
88
5.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Designing Experiences People Love
moore
138
23k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
800
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Practical Orchestrator
shlominoach
186
10k
Transcript
Tyranny Tyranny Tyranny O f C h o i c
e
Matthew Bergman @FotoVerite
HOW MANY CHOICES A DAY DO YOU MAKE WHEN PROGRAMMING
1 5
1 0
5
I B E T 1 MOST DAYS
WE USUALLY HAVE OUR GOTOS
Frameworks
Precompilers
LIBRARIES
S t y l e s ;
Modules
EXPERIMENT AN Let try
IF I ASKED YOU TO CREATE A WORDPRESS SITE WHAT
WOULD YOU DO
None
Look Familiar?
None
BUT DO YOU HAVE ANY IDEA? WHERE TO START?
LUCKILY IN JS YOU DO!
WHEN NEW PROBLEMS ARISE THOUGH WE BEGIN WITH M o
d u l e s
NPM HAS 17,307 MODULES 11/09/12
NPM HAS 17,308 MODULES
H O L Y S H I T
That’s More Than Homebrew 2 , 0 0 2 F
o r m u l a s
That’s More Than Magic 1 2 , 2 4 6
C a r d s
THIS IS ONLY GOING TO G R O W
0 4000 8000 12000 16000 20000 N P M M
O D U L E S
THAT’S A LOT OF C H O I C E
S
IF I ASKED YOU TO USE A CONTROL FLOW LIBRARY
WHAT WOULD YOU DO
A S Y N C
IF YOU SEARCHED FOR CONTROL FLOW ON NPM-WWW YOU’D GET
20 MODULES
NONE ARE ASYNC
WE ASSUME THAT PEOPLE ALREADY HAVE THE KNOWLEDGE THAT WE
HAVE
WE ASSUME THAT PEOPLE ALREADY HAVE THE SKILLS THAT WE
HAVE
There has to be a better way than this Q
u e s t i o n s , w e m i g h t a n s w e r t h e m G o o g l e
THE PROBLEM IS NOT NPM-WWW
P R O B L E M
DISCOVERY M o d u l e s M o
d u l e s M o d u l e s M o d u l e s M o d u l e s M o d u l e s M o d u l e s DISCOVERY DISCOVERY DISCOVERY DISCOVERY
I LIKE THE IDEA OF MANY MODULES WORKING TOGETHER
We need Small Wheels Modules should do one thing Substack
Tiny modules are fun... because they are easy I just spin everything out into lots of tiny modules Substack Substack
DO ONE THING AND ONE THING ONLY MODULES SHOULD module.export
= function() {... }
WE DON’T WANT A MONOLITH
R A I L S Overshadowing Means no real innovation
S I N A T R A PUMA WEB-MACHINE
BUT
THE REASON PEOPLE USED RAILS IS BECAUSE IT MEANT
L e s s D e c i s i
o n s
L e s s Technical Debt
L e s s T i m e
EVERY CHOICE HAS A C O S T
AND
EVERY ACT OF CHOOSING HAS A C O S T
TECHNICAL DEBT ACCRUES BEFORE AND AFTER CHOICES
WE HAVE FINITE TIME
None
W E N E E D T O STREAMLINE D
E C I S I O N S
I SHOULDN’T HAVE TO MAKE FIFTY DECISIONS TO START A
PROJECT
IT’S NOT JUST ABOUT DEPENDENCIES
It’ about M O D U L E S M
O D U L E S M O D U L E S C ONNECTING C ONNECTING CONNECTING
Make sure you build your libraries in a layered fashion
to reduce complexity. See sockjs => shoes => mdm => boot Raynos S t a c k o v e r f l o w “
DISCOVERY DISCOVERY DISCOVERY DISCOVERY DISCOVERY
NEEDS TO BE ORGANIC
NEEDS TO BE FUN
NEEDS TO BE THOUGHTFUL
THERE ARE COMMON PATTERNS TO DISCOVERY DISCOVERY DISCOVERY DISCOVERY DISCOVERY
LETS START SIMPLE
BLOG-POSTS
UM... NODEJITSU?
PLANETNODE
TRAINING SITES
CODEACADEMY
JS FOR CATS?
PODCASTS
WE HAVE ONE PODCAST AND ONLY ONE PODCAST
N O D E U P
None
NODE IS A YOUNG COMMUNITY THESE THINGS TAKE TIME
C O M M U N I T Y TAKES
TIME
BUT
WE NEED TO CREATE THESE RESOURCES NOW
BECAUSE
WE DON’T WANT A MONOLITH
AND
WE NEED TO THINK
BIGGER
WE CAN DO BETTER THAN THE PREVIOUS GENERATION
A LOT OF THESE METHODS ARE TIME SENSITIVE
AND N P M HAS UNIQUE CHALLENGES UNIQUE
None
H E A L T H COMMITS STARS FORKS
COMMITS STARS FORKS IF IT DOES ONE THING WELL WHY
ARE YOU ADDING TO IT
COMMITS STARS FORKS DITTO
COMMITS STARS FORKS SERIOUSLY WHO USES STARS
WE NEED A NEW WAY TO JUDGE THE HEALTH OF
A MODULE
VIEWING DEPENDENTS BOTTOM TO TOP
GOODNESS INDEX NPM-WWW
BETWEEN AUTHORS Collaboration
USED IN PRODUCTION MODULES
A GROWING COLLECTION OF APPS AND THEIR MODULES
VISUALIZATIONS WOULD BE AWESOME
MODULES ARE THE INGREDIENTS FOR YOUR APP YOU NEED TO
KNOW HOW THEY FIT TOGETHER
WE NEED TO MAKE IT AS EASY AS WE CAN
TO DISCOVER THE TOOLS WE NEED
WE HAVE FINITE TIME
Node project has never had to have any of the
conversations that the Apache project had to have. Mikeal Rogers L X J S 2 0 1 2 “
THIS MEANS WE HAVE NEW CONVERSATIONS THAT WE NEED TO
HAVE
THESE PROBLEMS ARE NOT EASILY SOLVED.
STOP... DEMO TIME
@FOTOVERITE