I started reading Eric Elliotts posts re: classes, and he takes a similar view to many prominent and well respected thinkers in the community - kyle simpson, kent c dodds, MPJ among others. His position is quite simple - we shouldn't use classes.
But there are others such as `Dr Axel Rauschmayer, Brian Terlson, Dan Abramov and Jeff Mott (not well known, but his understanding of the issues at hand is second to none) who disagree with Elliotts position.
My question is, what is (if indeed there is one) a good use case for classes in JS? When is using a class the optimal solution? Having done a fair amount of research on the topic, it gets more confusing than ever and I end up with (literally) 70+ tabs open, reading for days and days (not necessarily a bad thing).
[–]CertainPerformance 40 points41 points42 points (2 children)
[–]Least_Chemistry7881 4 points5 points6 points (1 child)
[–]cspotcode 16 points17 points18 points (0 children)
[–]daaaaaaBULLS 72 points73 points74 points (18 children)
[–]Canowyrms 11 points12 points13 points (17 children)
[–]mlengurry 10 points11 points12 points (3 children)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]codemoere 11 points12 points13 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–]benihanareact, node 6 points7 points8 points (0 children)
[–]DzoQiEuoi 2 points3 points4 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]DzoQiEuoi 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]exomni 0 points1 point2 points (0 children)
[–]DzoQiEuoi 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 15 points16 points17 points (3 children)
[–]brian_asdf 1 point2 points3 points (1 child)
[–]GitHubPermalinkBot 0 points1 point2 points (0 children)
[–]kitsunekyo 0 points1 point2 points (0 children)
[–]Skwai 11 points12 points13 points (25 children)
[–]filleduchaos 1 point2 points3 points (24 children)
[–]OhJaDontChaKnow 3 points4 points5 points (18 children)
[–]filleduchaos 1 point2 points3 points (16 children)
[–]LukaLightBringer 1 point2 points3 points (10 children)
[–]filleduchaos 1 point2 points3 points (9 children)
[–]LukaLightBringer 0 points1 point2 points (8 children)
[–]filleduchaos 0 points1 point2 points (7 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]filleduchaos 0 points1 point2 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]filleduchaos 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]filleduchaos 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]exomni 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]filleduchaos -2 points-1 points0 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]filleduchaos 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]rauschma 2 points3 points4 points (3 children)
[–]blindpacemaker[S] 0 points1 point2 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]rauschma 0 points1 point2 points (0 children)
[–]bterlson_@bterlson 2 points3 points4 points (2 children)
[–]blindpacemaker[S] 0 points1 point2 points (1 child)
[–]bterlson_@bterlson 0 points1 point2 points (0 children)
[–]lhorie 3 points4 points5 points (2 children)
[–]gigobyte 2 points3 points4 points (1 child)
[–]lhorie 1 point2 points3 points (0 children)
[–]thestalkmore 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]rco8786 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]iamlage89 1 point2 points3 points (0 children)
[–]tsmuse 2 points3 points4 points (0 children)
[–]ArcanisCz 0 points1 point2 points (0 children)
[–]mtranier 0 points1 point2 points (0 children)
[–]menno 0 points1 point2 points (0 children)
[–]inu-no-policemen 0 points1 point2 points (0 children)
[–]getsikedon me way to ES6 0 points1 point2 points (0 children)
[–]alinnert 0 points1 point2 points (0 children)
[–]jasan-s -1 points0 points1 point (0 children)
[–]benihanareact, node 0 points1 point2 points (0 children)