PROGRAMMING
Front-end architecture - Common patterns of classical inheritance in JavaScript
Front-end architecture - Common patterns of classical inheritance in JavaScript
There is a common understanding that front-end programming is less prone to architecture and design patterns, and more prone to the pursuit of more stable add-ons. Well, since this is an obvious shallow approach, we are going to use this article to throw a ray of light on classical inheritance in JavaScript, its common patterns, features and the frequent mistakes of its application. We’ll consider examples of inheritance in Babel, Backbone JS and Ember JS, and we will try to derive the key principles of object-oriented inheritance for creating custom implementation with EcmaScript 5.