3 ms·
> Everything has to be an object There are plenty of OOPLs where this is not the case. For example C++ or Python. > Why is OOPS popular? Because it makes it e
by cabalamat 18y ago
> Everything has to be an object
There are plenty of OOPLs where this is not the case. For example C++ or Python.
> Why is OOPS popular? Because it makes it easier and safer to get programmers working together as a group.
That's true. But the main reason why OOPL is popular is because it makes programming more productive, whether there's one programmer writing the code or lots of them.
- russell 18y agoPython is a pure OO language; everything is an object. Java is impure; primitives are not objects. Python is not an everything-must-be-in-a-class language, like Java. Python allows you to create a variable or function without having to put in a class. Much better, I think;
- cabalamat 18y ago> Python is a pure OO language; everything is an object. It is now, but it wasn't always. For example, you didn't used to be able to create a subclass of dict or int. And you can certainly code in Python just using built in data types and functions, not making use of any OO features.
- visitor4rmindia 18y agoWhich is pretty much my point. Python has morphed into "everything is an object". To see how C++ has moved towards objects-for-everything, I have just one word - boost! RE your second point - I don't know of any studies that show OOPS makes programmers more productive. As a matter of fact, some anecdotal evidence (cough pg cough), points to the opposite!