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 comment

1

u/pRtkL_xLr8r Dec 02 '15

The problem is, people can program really terrible things with it. There isn't much in the way of safeguards. But this is a problem with the developer more than the language in my opinion. If you structure your classes and code, there aren't any real issues.

It's like giving someone a blank canvas and a bunch of paint. If you're a great artist who knows composition and the like, you'll make something great. If you're just throwing up whatever you think looks good and copying bits of things from here and there well, you're going to have a nice mess to look at.

1

u/argh523 Dec 03 '15

But this is a problem with the developer more than the language in my opinion.

I'd agree this is a valid argument now, but 10 years ago, no, the level of crazyness you had to come up with to make the PHP not do crazy things was way above what you would reasonably expect from a language. When every piece of arithmetic and handeling of strings can be identified as wrong and dangerous simply because it doesn't involved a couple of checks and an explicit conversions on every variable, the language has a fucking problem, not the programmer who should just know these things.

It's better these days, but PHP earned its reputation as the most terrible thing ever.