r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

Show parent comments

3

u/mgkimsal Dec 03 '15

Build websites with plain Ruby, then compare it to PHP.

If you're going to use Rails, compare against mature PHP frameworks. Not fair comparison otherwise.

1

u/pBlast Dec 03 '15

PHP was designed specifically for building websites without a framework whereas Ruby is a general purpose language that was used to build a framework. That is not a fair comparison on your part.

I am fully aware that there are mature frameworks in PHP that are comparable feature-wise with Rails. However, that does nothing to change the fact that PHP is not just poorly designed, it is lacking in design altogether. The language itself has little in the way of built-in object oriented functionality. To make matters worse there is not consistency in the way functions are named, accept parameters or generally behave.

2

u/iopq Dec 03 '15

Still, Rails is a framework, while PHP is more like a collection of libraries.

The language itself has little in the way of built-in object oriented functionality

First of all, that's not true. There's classes and interfaces, so you can write Java in PHP all you want. Second of all, if it wasn't true, it would actually not matter that much because OOP is not necessary for a language to be good.

1

u/pBlast Dec 03 '15

Yeah I realize that PHP has decent support for object oriented features, but that's not what I was saying. I was referring to the built in functionality. Even common things like working with strings arrays is not object oriented in the least.

I agree that a language does not need to be object oriented in order to be good. However, PHP is still not a good language regardless of whether or not it is object oriented.

→ More replies (3)