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
29
Advanced TypeScript for React
glennreyes
0
120
TypeScript Patterns for Better React Components
glennreyes
1
530
GraphQL for React Developers
glennreyes
0
220
When things go wrong, get errors right!
glennreyes
0
140
GraphQL for JS developers
glennreyes
1
170
Building Dapps with React
glennreyes
0
130
Third-Party or Custom Code? The Art of Software Decisions
glennreyes
0
100
UI/UX challenges of Web3 and Dapps
glennreyes
0
190
Other Decks in Programming
See All in Programming
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
1.7k
Inside Stream API
skrb
1
650
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
720
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.9k
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
1.4k
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
220
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
4.2k
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
3.7k
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
270
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
110
dRuby over BLE
makicamel
2
320
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
250
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1.2k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
190
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
150
Code Reviewing Like a Champion
maltzj
528
40k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
200
Marketing to machines
jonoalderson
1
5.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
WENDY [Excerpt]
tessaabrams
11
38k
Mind Mapping
helmedeiros
PRO
1
240
Scaling GitHub
holman
464
140k
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