SOLID JavaScript
summary
Applies SOLID to real JavaScript: shows a React component that fetches data in-component and how to pull API code out so components only render, demonstrates prototype-based extension by creating Task and UrgentTask and copy prototype to extend rather than modifying originals, uses the printer job story to justify a facade over legacy code, and recommends passing save/handlers in to follow dependency inversion. Examples compile and run in the talk, proving these adaptations make front-end code easier to maintain.
AI-written summary · about
chapters (8)
- 0:00Introduction and context
- 2:35SOLID principles overview
- 6:58Single responsibility in JavaScript
- 12:06Open/closed principle explained
- 20:51Liskov substitution principle
- 29:25Interface segregation in JavaScript
- 35:08Dependency inversion simplified
- 36:57Applying SOLID to existing code
related talks
31mGetting up to Speed with JS Today
19mSolidJS: Reactivity Unchained
18mIntro to Solid.js for React Developers (or anyone else)
59mDeveloping React Applications with Functional Components
17mSupercharging React Performance with JavaScript Signal Optimisation
27mUnderstanding JavaScript Libraries via React and the React Ecosystem
21mAsk not what JavaScript can do for you
29mThe World Beyond Components
