Learn the best practices of how to write clean classes in JS. This video tutorial shows you how easy is to write Javascript classes that are readable, reusable, and refactorable. This video covers ES6 classes, method chaining, and composition over inheritance.
- http://codepen.io/beaucarnes/pen/OppxgZ
Ryan McDermott-s original article:
- https://github.com/ryanmcdermott/clean-code-javascript
Beau Carnes on
ManuAlvarado22: The only thing i really didnt like was calling prototypal inheritance the bad way. Its maybe harder to understand or read at first, but its not bad and its actually THE way javascript does it, and the class keyword is, as everybody has probably read already, syntactic sugar; which is not bad at all, but, just that. Still, this video is wonderful! I loved the explication about composition and inheritance, really clear. Thank you! Date: 2022-03-14