Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
vintprox166115dHeh, but it's only conventional to not modify all caps variable, it's asking for trouble 😏
theabbie370815devery variable is a constant if you never change it
Python decided to be an interpreted script language and so it's similar to JS and other pragmatic languages which don't care about things like real constants.
This decision probably came from the camp of people who believe that simplicity is the highest goal and would sacrifice correctness, safety and performance for it any time.
rooter104014d@vintprox exactly! Same for protected and private properties. I can hack a professional addition on top of a library instead of having to fork it. So, the library will be updated by their contributions and i can assure for myself that every thing is ok with my tests.
So I love that everything is possible, but it's clear you should really figure out why something is protected or private. Just an indication of sensitivity.
It can be used in amature approach but also very professional. It's freedom!
The ability to add stuff to external libs is normally provided by extensions in many languages. You don't need to give up access modifiers for that.
It's so common for people to justify shortcomings with "freedom".