Fast to run or fast to code? OOP makes complex systems easier to maintain, more robust and more sane to understand. In other words, it makes big, complex and mission critical systems cheaper to develop and maintain and with a higher level of quality in every sense of what quality can mean.
Slow down with the OOP kool aid, in PHP userspace it has a performance drawback.
I don't want to raise the argument into how badly broken (and more stuff that just feels bad to say) is PHP itself or the PHP ecosystem. You are very right in pointing out that PHP - more specifically the Zend Engine - is the hell of an unperformant piece of software. OOP was invented to save development time (and many other things). Other languages were designed from the ground with OOP in mind, not patched to support it as it happened with PHP.
What I meant to say with the 20y/o spaghetti code statement is not that spaghetti code is something of the past, it is that many things in PHP, including Drupal 7, feel like 20y/o. And I really mean it. I probably was 10 when I started programming with Visual Basic in a Windows 3.1 machine and every time I have to touch PHP or D7 code it brings me some good memories from that time.
Fast to run or fast to code? OOP makes complex systems easier to maintain, more robust and more sane to understand. In other words, it makes big, complex and mission critical systems cheaper to develop and maintain and with a higher level of quality in every sense of what quality can mean.
I don't want to raise the argument into how badly broken (and more stuff that just feels bad to say) is PHP itself or the PHP ecosystem. You are very right in pointing out that PHP - more specifically the Zend Engine - is the hell of an unperformant piece of software. OOP was invented to save development time (and many other things). Other languages were designed from the ground with OOP in mind, not patched to support it as it happened with PHP.
I probably missused the term spaghetti:
What I meant to say with the 20y/o spaghetti code statement is not that spaghetti code is something of the past, it is that many things in PHP, including Drupal 7, feel like 20y/o. And I really mean it. I probably was 10 when I started programming with Visual Basic in a Windows 3.1 machine and every time I have to touch PHP or D7 code it brings me some good memories from that time.