3 ms·
Programming doesn't scale well. My experience is Javascript and even PHP scale better than C++. I do a lot of type checking and I don't use OOP features.
by mabynogy 8y ago
Programming doesn't scale well.
My experience is Javascript and even PHP scale better than C++. I do a lot of type checking and I don't use OOP features.
- scarface74 8y agoWith a modern IDE though, once you discover the error of your ways and do start using OOP. You can click on a few methods and do an "extract class" and it will automatically create your class, modify all of your references, find all of the referenced variables that your functions use and give you nice helpful auto refactorings and you know that your code won't break. But as far as using C++ and not using OOP, as thevold saying goes, you can write FORTRAN in any language.
- mabynogy 8y agoI think OOP (precisely inheritence) makes programming more difficult even if OOP works for 80% of the cases. The last 20% are impossible to handle with that pattern and make a class hierarchy unstable. I think Smalltalk is the most productive language because of its VM (builtin IDE, DB...) and not because of OOP.
- scarface74 8y agoMost seasoned OOP practitioners would agree with you. That's where the phrase "prefer aggregation over inheritance" came from.