The article lay the testability issue, but offers no alternative... Since as far as i know there are none.
Also article is kinda crap as it fails to understand the reason they are truly necessary. But upvoting to generate discussion here.
Also article is kinda crap as it fails to understand the reason they are truly necessary. But upvoting to generate discussion here.
We actually depend on real private methods.
just because what you do every day makes it useless, it's presumptuous to assume it's the same for everyone.
Exactly why I asked...
If you are running untrusted code in JS then real private methods have only given you a very false sense of security. You should have run it in a sandboxed process instead.
He basically exposes them while in a dev environment, and then uses a build tool to make them actually private. I agree with weego's comment though, its something that isn't usually worth the tradeoffs, as long as your team has discipline.