I recently posted a 3-part guest blog post series on JS Objects to David Walsh’s wonderful blog. Here, I’m just archiving links to those articles.
When you set aside distractions like mixins, polymorphism, composition, classes, constructors, and instances, and only focus on the objects that link to each other, you gain a powerful tool in behavior delegation that is easier to write, reason about, explain, and code-maintain. Simpler is better. JS is “objects-only” (OO). Leave the classes to those other languages!
- Part 1: JS Objects: Inherited a Mess
- Part 2: JS Objects: Distractions
- Part 3: JS Objects: De”construct”ion