Hacker News new | past | comments | ask | show | jobs | submit login
Field declarations overwrite properties on the prototype (github.com/tc39)
1 point by Lwrless on May 30, 2023 | hide | past | favorite | 1 comment



Reading that made me sad. There is not a good reason to do any of that. Getters/setters are super a slow. Classes and inheritance increase complexity. These are things that are measurable and provable with numbers. I had to juggle much of this in Vue at the last job and it made for extremely fragile software.

I get the feeling people need to live within these layers of syntax complexity due to poor education. People are taught conventions for writing code, like OOP instead of being taught how to organize and architect. The result is that people expect familiar patterns and tools to do the heavy lifting when really there is no heavy lifting to be done.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: