3 ms·
I guess it depends. I've worked on enough codebases that were made extremely fragile by "smart" people fiddling with (or worse, just relying on) notionally pri
by Yodel0914 3y ago
I guess it depends.
I've worked on enough codebases that were made extremely fragile by "smart" people fiddling with (or worse, just relying on) notionally private variables, so I think encapsulation is pretty great. OTOH, I've worked on some fairly large scale js/ts where encapsulation is pretty loose, and 95% of the time it's not an issue.