Lea Verou personal blog
JavaScript private class fields considered harmful
Today I mourn. What am I mourning? Encapsulation. At least in my projects. As a library author, I’ve decided to avoid private class fields from now on and gradually refactor them out of my existing libraries. Why did I make such a drastic decision? It all started a few days ago, when I was building a Vue 3 app that…
- Points
- 114
- HN comments
- 133
- Submissions
- 1
- Cited by
- 0 commenters
Web & FrontendProgramming Languages2023
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Apr 28, 2023 | JavaScript private class fields considered harmful by feross | 114 | 133 |