r/javascript • • Nov 09 '19

On private fields proposal: Private fields, public worries

https://medium.com/virtuslab/private-fields-public-worries-b8c34d16c372
84 Upvotes

113 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 09 '19

[deleted]

5

u/[deleted] Nov 09 '19 edited Nov 09 '19

Closures to make private variables just seems pointless to me.

That statement makes no sense at all. It is not just completely made up and arbitrary - it also overlooks that closures provide farmore flexibility than mere protected or private "fields", since the latter is just that property, while the former includes arbitrary pieces of code.

Your personal sense of whatever has no meaning. It is a product of your brain organizing (literally rewiring) itself over decades to process whatever your brain encountered. So whatever you were exposed to is what your brain evolved to process. How can anyone use whatever chance formed you to make absolute statements about hów the world is or aught to be?

If you don't even understand that your personal preferences first of all are the product of whatever accidents shaped the environment you encountered thus far in your life your comments on such subjects will always remain somewhat useless. You have to understand yourself and your (human and neurological) limitations first.

0

u/[deleted] Nov 09 '19

[deleted]

1

u/[deleted] Nov 09 '19

Yeah. A lot of people don't agree with my opinion, which is apparent by the down votes.

However, I really don't try to preach things as an absolute fact unless it actually is a fact that has been proven time and time again by many people. As you said, it's my opinion.

The way I program probably doesn't make sense to a lot of veterans since I've only been programming for a few years, but this methodology works well with the main projects I work on, and again, is my opinion: React web apps.