Hacker News new | ask | show | jobs
by bucky 4078 days ago
I completely agree we should stop being paranoid about what's going to happen when we let other people loose on our beautiful code.

But I don't think having private methods or marking variables const is about paranoia, it's about communicating intent to the people who come behind you and using the compiler to enforce that intent. Every piece of extra context you can give to someone reading your code helps them understand why it's there. Identifiers like const and private are almost like nonverbal communication for code.