2 ms·
OOP is not just about using classes, just like functional programming is not just about using functions. They're different programming paradigms, each with the
by orange8 7y ago
OOP is not just about using classes, just like functional programming is not just about using functions.
They're different programming paradigms, each with their own patterns, strengths and weaknesses. Idiomatic TS favors an OOP style, which is why there are event libraries out their [0] whose sole goal is to enable using TS the functional way.
> The Angular community requires use of TS
Angular was once the king of the JS frontend, but now it has more or less been reduced to a certain niche in the market. It is no accident that it is very popular among those with a Java background, with Java being a very good example of a static OOP language.
> The React community has split in general between types and no types
That split is being caused by TS. This is not a good thing for the eco-system as a whole. The idea that everyone will be forced into adopting TS because of the power of MS is the very idea that will lead to a backlash, just like the backlashes against XHTML and Java applets.
[0] https://github.com/gcanti/fp-ts https://github.com/gcanti/fp-ts