“oop” Posts

Constructors should not have side effects

A mild discourse into the common anti-pattern of creating a constructor that has side effects.

Refactoring a switch statement

In which I chronicle the many ways to refactor a switch statement. And by many I mean two

Simple classical inheritance in JavaScript