Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototypal Inheritance

Minor Drawback With Crockford Prototypical Inheritance

Just experimenting with different inheritance techniques in JS, and came across something mildly di… Read more Minor Drawback With Crockford Prototypical Inheritance

Javascript - How To Initialize Super Class If Super Class Constructor Takes Arguments

Consider the following Javascript snippet, var SuperClass = function(x){ this.x = x; this.a… Read more Javascript - How To Initialize Super Class If Super Class Constructor Takes Arguments

Inherit Prototype Methods From Other Classes Without Overriding Own Prototype Methods

Is there a better way of having a class inherit prototype methods from another class and still be a… Read more Inherit Prototype Methods From Other Classes Without Overriding Own Prototype Methods

Why Defining Properties In The Prototype Is Considered An Antipattern

I often see this pattern to define javascript objects function Person(name) { this.name = name;… Read more Why Defining Properties In The Prototype Is Considered An Antipattern

What Is The Alternative Equivalent Of Javascript "prototype" In Typescript?

Typescript provides Object Oriented & Generic programming paradigms apart from Functional progr… Read more What Is The Alternative Equivalent Of Javascript "prototype" In Typescript?

The Constructor Of Object.prototype

In JavaScript, every object inherits its properties and methods from a specific prototype, where pr… Read more The Constructor Of Object.prototype

Javascript Prototypal Inheritance?

I'been doing some inheritance in js in order to understand it better, and I found something tha… Read more Javascript Prototypal Inheritance?

Prototypal Inheritance In Javascript

I've been watching Douglas Crockford's talks at YUI Theater, and I have a question about Ja… Read more Prototypal Inheritance In Javascript

Add Formats To Native Date Parser

I was wondering if there was any way to add (and map) formats to the native Date parser in javascri… Read more Add Formats To Native Date Parser

EXTENDS Challenge: Preprocessor Function Macros And Class-like Oop

Background I've been using the C preprocessor to manage and 'compile' semi-large javasc… Read more EXTENDS Challenge: Preprocessor Function Macros And Class-like Oop

Javascript Inheritance ; Call And Prototype

To implement inheritance in Javascript, one generally does the following 2 steps; Say I have a base… Read more Javascript Inheritance ; Call And Prototype

Javascript - How To Initialize Super Class If Super Class Constructor Takes Arguments

Consider the following Javascript snippet, var SuperClass = function(x){ this.x = x; this.a… Read more Javascript - How To Initialize Super Class If Super Class Constructor Takes Arguments