Re:React v15.6.0 Released
by coldtea on Wednesday June 14, 2017 @06:15AM
(#14551688)
>Coming from OO languages, I'd like to use ES6 classes, but I can't because I'm told it's not idiomatic and I don't want my code to stand out like a sore thumb.
Simply, ignore them. That's just noise from the huge influx of JS developers and the immutable/functional cargo cult train. ES6 classes are perfectly fine, they're a sugary layer on top of prototypal inheritance, that merely formalizes how almost everybody was already using it.
Nothing wrong about ES6 classes, and nothing that great about pure prototypal inheritance anyway (which they still are).
>cannot use ES6 classes without looking like fools
For one, ES6 classes are the recommended way from the React team.
Second, don't worry about how you "look".
Programming is a discipline, not a cargo cult or pop culture to fear of being "uncool".
Simply, ignore them. That's just noise from the huge influx of JS developers and the immutable/functional cargo cult train. ES6 classes are perfectly fine, they're a sugary layer on top of prototypal inheritance, that merely formalizes how almost everybody was already using it.
Nothing wrong about ES6 classes, and nothing that great about pure prototypal inheritance anyway (which they still are).
>cannot use ES6 classes without looking like fools
For one, ES6 classes are the recommended way from the React team.
Second, don't worry about how you "look".
Programming is a discipline, not a cargo cult or pop culture to fear of being "uncool".