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

2

u/pBlast Dec 02 '15

For me the opposite is true. I used to do PHP all of the time and still use it occasionally use it and over time I have become increasingly convinced that PHP is bad while in using Ruby and Rails I increasingly see how useful they are.

PHP is pretty bad due to the lack a coherent design and you never really get into a groove, you just kind of memorize some of its oddities.

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.

→ More replies (4)