Is there a good, well-argued article on why OOP is a good fit for UI code? I've heard this talked about many times, but want to read something meaty from an experienced dev who has seriously considered alternatives to OOP
@rain@astraluma I would say that React’s switch from class components to functional components is a fairly good case for this. It significantly reduced complexity, thabks to react hooks giving us a better way to manage state
@nikitonsky my original reply was about react component implementation, which largely required class construction prior to react 16 and was thus entirely OOP. With the introduction of react hooks it became possibly to do the vast majority of components using entirely functional programming. The vast majority of components do not interact directly with the DOM, there is no OOP involved.
What happens below that abstraction isn’t relevant to the discussion. @rain@astraluma
Add comment