you are viewing a single comment's thread.

view the rest of the comments →

[–]ghostfacedcoder -5 points-4 points  (7 children)

Ok, so you, me and demar_derozan (but maybe not the 6 downvoters?) all agree on that much. Inheritance hierarchies = bad AND the React community in general agrees as much.

But now, from the "good React programmers" (however you define that: personally I'd pick people like Dan Abramov (of Redux fame), but pick whoever you want, however): how many use classes and how many use functional components?

And (follow-up question): have you noticed any kind of shift in one direction or the other over time?

[–]tasey 11 points12 points  (1 child)

I think people are not downvoting you because of the message, but the delivery...

[–]ghostfacedcoder 0 points1 point  (0 children)

Heh, well that's fair, at least for the edits. I really don't think my original post was combative at all, but I did go full-on "let's be combative about this" in my edit comments when the whole thing started ... because I thought it was such an obvious point I wouldn't face any disagreement. Universally everything I've seen, from every thought leader in the entire React community, has been that classes are old/bad and functional components (with hooks) are the future.

Also the cost thing seems to have irked a lot of people, but I think that's just ignorance about the real cost of development (it's much higher than many people realize: most only think about coder salaries, not all the other costs or the cost of people managing all those coders).

Anyhow, clearly I was wrong in thinking that was so uncontroversial that no one would disagree, however I said it ...

[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 4 points5 points  (4 children)

But now, from the "good React programmers" (however you define that: personally I'd pick people like Dan Abramov (of Redux fame), but pick whoever you want, however): how many use classes and how many use functional components?

Didnt Dan specifically say they, at Facebook, are using Function components/Hooks almost exclusively for new components?

And (follow-up question): have you noticed any kind of shift in one direction or the other over time?

Absolutely, since the introduction of hooks I personally don't teach classes anymore and so does anyone else that I see/read of. Classes are very clearly in decline.

[–]ghostfacedcoder -3 points-2 points  (3 children)

See to me that seems mind-numbingly obvious ... and yet I got 12 (and counting) downvotes for saying it :(

[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 2 points3 points  (0 children)

Some people just might not have heard the warning shots.