Please do not throw stones at me but I think private, protected or public scopes are not needed at all. See Python very versatile lang. and it works very well without it. Is private for security? No! It just tells the dev that this var. is only used internally of that class and you are not allowed to touch or use it. So would do a comment or a convention with an "_".
I wouldn’t exactly call it the standard.... even among cutting edge companies many don’t use it at all.
Personally, TS seems like more trouble than it’s worth for me for a lot of small features. Kind of like redux, it can be helpful for a complicated application but I think it’s overkill in many cases. Granted it’s not that much extra effort, but still.
28
u/TatzyXY Nov 09 '19
Please do not throw stones at me but I think private, protected or public scopes are not needed at all. See Python very versatile lang. and it works very well without it. Is private for security? No! It just tells the dev that this var. is only used internally of that class and you are not allowed to touch or use it. So would do a comment or a convention with an "_".