Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




Python 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;


> 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.


Which 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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: