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
Drawing the line between 3rd party and custom code
Search
Glenn Reyes
October 11, 2019
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Drawing the line between 3rd party and custom code
Glenn Reyes
October 11, 2019
More Decks by Glenn Reyes
See All by Glenn Reyes
Dutch AI Conference - Building Interactive Chat Interfaces with MCP-UI
glennreyes
0
33
Advanced TypeScript for React
glennreyes
0
120
TypeScript Patterns for Better React Components
glennreyes
1
540
GraphQL for React Developers
glennreyes
0
220
When things go wrong, get errors right!
glennreyes
0
150
GraphQL for JS developers
glennreyes
1
180
Building Dapps with React
glennreyes
0
130
Third-Party or Custom Code? The Art of Software Decisions
glennreyes
0
110
UI/UX challenges of Web3 and Dapps
glennreyes
0
200
Other Decks in Programming
See All in Programming
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
180
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
530
act1-costs.pdf
sumedhbala
0
240
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
180
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
140
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
350
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
540
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
160
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
500
What's New in Android 2026
veronikapj
0
140
えっ!!コードを読まずに開発を!?
hananouchi
0
230
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
150
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
880
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Faster Mobile Websites
deanohume
310
32k
Color Theory Basics | Prateek | Gurzu
gurzu
0
400
Raft: Consensus for Rubyists
vanstee
141
7.6k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
190
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
370
Designing for Performance
lara
611
70k
The SEO identity crisis: Don't let AI make you average
varn
0
520
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Transcript
Drawing the line between 3rd party and custom code @glnnrys
· glennreyes.com
@glnnrys
@glnnrys
Glenn Reyes @glnnrys
Why do we love building apps? @glnnrys
None
Open Source is ❤ @glnnrys
Vincent van Gogh “Great things are done by a series
of small things brought together.” @glnnrys
@glnnrys
How do we decide on things? @glnnrys
Which form library in React? @glnnrys
Which form library? formik final-form redux-form Vanilla @glnnrys
Which date library? @glnnrys
Which date library? moment dayjs date-fns Native luxon @glnnrys
Which id generator? nanoid cuid shortid my own @glnnrys
None
Making decisions are hard and time consuming. @glnnrys
Approaches @glnnrys
Just pick any @glnnrys
None
None
None
None
None
What I need vs what my users need @glnnrys
None
👩💻👨💻 @glnnrys
In any case ... @glnnrys
@glnnrys 🤓 👩💻 👷 @glnnrys
@glnnrys 🤓 👩💻 👷 🐒 👩🎤 🔮 🥑 🍌 @glnnrys
Architectural Decision @glnnrys
Complexity Speed API Size Bugs Dependency Documentation Time Constraints Development
Environment License @glnnrys
How to measure complexity? @glnnrys
// $(el).toggleClass(className) function toggleClass(el, className) { if (el.classList) { el.classList.toggle(className);
} else { var classes = el.className.split(' '); var existingIndex = classes.indexOf(className); if (existingIndex >= 0) classes.splice(existingIndex, 1); else classes.push(className); el.className = classes.join(' '); } } youmightnotneedjquery.com @glnnrys
// $(el).toggleClass(className) var classes = el.className.split(' '); var existingIndex =
classes.indexOf(className); if (existingIndex >= 0) classes.splice(existingIndex, 1); else classes.push(className); el.className = classes.join(' '); } @glnnrys
// $(el).toggleClass(className) var classes = el.className.split(' '); var existingIndex =
classes.indexOf(className); if (existingIndex >= 0) classes.splice(existingIndex, 1); else classes.push(className); el.className = classes.join(' '); } 🧐 @glnnrys
@glnnrys
// $(el).toggleClass(className) function toggleClass(el, className) { if (el.classList) { el.classList.toggle(className);
} else { var classes = el.className.split(' '); var existingIndex = classes.indexOf(className); if (existingIndex >= 0) classes.splice(existingIndex, 1); else classes.push(className); el.className = classes.join(' '); } } @glnnrys
// $(el).toggleClass(className) function toggleClass(el, className) { el.classList.toggle(className); } @glnnrys
element.classList.toggle(className); @glnnrys
Bundle size @glnnrys
https://bundlephobia.com/result?p=react @glnnrys
Import Cost VSCode Extension @glnnrys
@glnnrys
@glnnrys
On the web there's new libraries every day @glnnrys
Use what works best for you @glnnrys
Community Support ❤ @glnnrys
@glnnrys
People love solving problems @glnnrys
NO PROBLEMS === NO 🤑 🤑 🤑
None
How are problems solved in web development? @glnnrys
Decisions @glnnrys
How to decide what library to use? @glnnrys
Is it over-engineered? @glnnrys
@glnnrys
@glnnrys
Look into the source code 🤓 @glnnrys
The node_modules folder is your friend @glnnrys
Let maintainers know about your problem, ideas & improvements @glnnrys
It should solve your problem @glnnrys
Dealing with picking the most popular library @glnnrys
@glnnrys
⭐ GitHub stars 🛠 Active maintenance 🍃 Active community 💻
Platforms @glnnrys
Should I pick the most popular library? @glnnrys
@glnnrys
How about just roll my own? @glnnrys
¯\_(ツ)_/¯ @glnnrys
Rolling your own code allows you to Tailor code to
your exact needs @glnnrys
Rolling your own code gives you full control @glnnrys
With full control it's your responsibility to maintain and keep
track of your code @glnnrys
Where to draw the line? @glnnrys
Find the right balance intuitively @glnnrys
Understand the importance of decisions @glnnrys
Harm reduction @glnnrys
Try to get the best outcome but reduce potential risks
@glnnrys
Make decisions @glnnrys
Make good decisions @glnnrys
Make good decisions Make clean decisions @glnnrys
Make good decisions Make clean decisions Make right decisions @glnnrys
Make good decisions Make clean decisions Make right decisions Make
smart decisions @glnnrys
Make good decisions Make clean decisions Make right decisions Make
smart decisions Make reasonable decisions @glnnrys
Everytime we add more code into our library we increase
the spectrum for new bugs @glnnrys
Take risks and keep moving forward @glnnrys
Always start simple @glnnrys
Keep good practices that worked in the past. @glnnrys
Don't let new things intimidate you @glnnrys
Write the best code possible @glnnrys
One day old code becomes legacy. And if they are
great, we'll enjoy using older code even more. @glnnrys
“ ” Kent C. Dodds We should be mindful of
the fact that we don't really know what requirements will be placed upon our code in the future. @glnnrys
Keep using code what you know best @glnnrys
Never stop learning @glnnrys
Never stop learning new things @glnnrys
Thank you @glnnrys · glennreyes.com