I loved the classes at first, but as I've got more in to it I've found that classes and prototypes are redundant. Closures let me maintain all of the state that I need without the extra boilerplate.
Re:Things I Regret About Node.js [video]
by noir_lord on Thursday June 07, 2018 @08:47AM
(#17255262)
Agreed, classes with typescript and Vue make sense to me in a SFC approach.
Something about components just fits the class model well.
Re:Things I Regret About Node.js [video]
by workinthehead on Friday June 08, 2018 @08:38AM
(#17264690)
Or, you know, you could actually learn the language you use. Prototypes are not nearly as bloated as classes, and you usually don't even need them. OO is not the one true paradigm of coding.
ES6+ flavors of JS & Typescript really made me take web programming seriously again.