level-generator icon indicating copy to clipboard operation
level-generator copied to clipboard

move from es6 classes to factory pattern

Open mreinstein opened this issue 7 years ago • 2 comments

class based OOP sucks.

mreinstein avatar May 04 '17 19:05 mreinstein

why?

Prozi avatar Jul 01 '17 06:07 Prozi

because they aren't real classes. They are still using javascript's prototypal inheritance under the hood. They are essentially just pretty labels on top of javascript's existing object model.

mreinstein avatar Jul 04 '17 01:07 mreinstein