2024-10-26 15:38
JS has few rules, and in general, the fewer rules a language has, the more footguns it has.
Classes and object orientation are ways to create rules and not shoot yourself in the foot.
Also, unless I'm mistaken, OOP is well suited for programming asynchronous bits.
Really, the answer is probably to use Typescript to get some of what we want to get from Object Oriented design.