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

SubmittedTitle on HNPointsComments
Apr 28, 2023JavaScript private class fields considered harmful by feross114133

More from Lea Verou

All 7 posts →

Related posts from the same era