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.
1
回覆
1
轉發

回覆

轉發

24小時粉絲增長

無資料

互動率

(讚 + 回覆 + 轉發) / 粉絲數
6.45%

回覆 (BETA)

最先回覆的內容
發文後用戶內容
9 小時內
profile
WhiteSponge
thewhitesponge
That's an interesting alternative too!

© 2025 Threadser.net. 版權所有。

Threadser.net 與 Meta Platforms, Inc. 無關,未經其認可、贊助或特別批准。

Threadser.net 也不與 Meta 的"Threads" 產品存在任何關聯。