Of Classes and Arrow Functions (a cautionary tale)
Explains the pitfalls of using arrow functions as class methods in JavaScript, highlighting prototype inheritance issues.
Angus Croll writes about JavaScript, programming techniques, and language quirks, exploring topics like arrow functions, strict mode, mixins, and extending native objects. His blog blends technical insight with practical coding examples and creative explorations.
9 articles from this blog
Explains the pitfalls of using arrow functions as class methods in JavaScript, highlighting prototype inheritance issues.
Analysis of the new JavaScript fat arrow function syntax, its features, and potential concerns for developer understanding.
Explores the practice of extending JavaScript native prototypes, discussing its utility, risks, and compatibility concerns.
Explores the quirks of JavaScript's typeof operator and proposes a more reliable alternative using the internal [[Class]] property.
Introduces Waldo, a tiny JavaScript bookmarklet for searching and inspecting objects in a web page's runtime object model.
Explores JavaScript mixins as an alternative to classical inheritance for code reuse, detailing various techniques and their performance.
A technical deep dive into JavaScript's Strict Mode, covering its invocation, rules, browser support, and practical examples.
An in-depth exploration of JavaScript's comma operator, covering its syntax, precedence, and practical use cases in code.
Explores JavaScript's Object.keys() and Object.getOwnPropertyNames() methods for improved object property enumeration and iteration.