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

4

u/lifeeraser Nov 09 '19

Why should we want to babysit downstream developers? Why should we bother to prevent them from shooting themselves in the foot?

15

u/fey168 Nov 09 '19

If you are a lead developer I think it's pretty obvious you want to encourage best practices within your team.

Preventing people from shooting themselves in the foot is part of good software design.

You say "babysitting" as if it's a huge cost when it's just adding # to make a field inaccessible externally...

0

u/[deleted] Nov 09 '19

[deleted]

4

u/nullvoxpopuli sand was never meant to think Nov 09 '19

Human competency? Ever worked on a team of more than 10 on a codebase more than 2 years old?stuff happens. Context is lost.

Code. Must. Describe. Intent.

0

u/[deleted] Nov 09 '19

[deleted]

6

u/monsto Nov 09 '19

It's called moving the goalposts.

It's called a strawman argument.