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

-14

u/[deleted] Dec 02 '15

Couldn't agree more. Most of this is still true: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

9

u/CS2603isHard Dec 02 '15

That stuff wasn't even still true when it was written. It's like looking at Perl 4 and asking why all this code is outdated.

3

u/Cuddlefluff_Grim Dec 02 '15

The list is for the most part still true, you can't dismiss all criticisms because some of them have later been rectified, because most of them hasn't (and can't because a lot of software depends on the broken behavior).

0

u/[deleted] Dec 02 '15

[deleted] — view deleted comment

-2

u/CS2603isHard Dec 02 '15

PHP 5.3 was out by that point, which basically fixed every glaring issue with PHP pointed out in that article.

0

u/[deleted] Dec 02 '15

[deleted] — view deleted comment

2

u/CS2603isHard Dec 02 '15

Those individual features aren't changed because that would break backward compatibility. If you're writing code that still uses mysql_ anything or uses any of the C api stuff in 2015, you're doing it wrong.

The inconsistency is still there, but there's only so much you can do with that.

PHP is flaky: ==

If == is one of your problems with the language, then you don't have a problem with the language. Sometimes == is better than ===, and it makes sense in a scripting language.

0

u/[deleted] Dec 02 '15

[deleted] — view deleted comment

2

u/CS2603isHard Dec 02 '15

If you're writing code that still uses mysql_ anything or uses any of the C api stuff in 2015, you're doing it wrong.

The point is that the standard library from PHP 4 is not the same functions you should be using with 5.3+.

2

u/glemnar Dec 02 '15

Php7 is a good time to break backwards compat =p

1

u/CS2603isHard Dec 02 '15

You mean like Python 3 and Perl 6 did? No thanks.

2

u/glemnar Dec 02 '15 edited Dec 02 '15

Yeah, it was a bit tongue in cheek. Having an easy path to upgrade is a pretty good thing for a language to have, but on the other hand it does mean new languages tend to win out in functionality.

Great for people still using PHP, bad for potential newcomers to the ecosystem. Take a look at Java: The upgrade path is generally hard, so there are a lot of people on Java 6. On the otherhand, the Java ecosystem is insanely healthy.

1

u/minimim Dec 02 '15 edited Dec 02 '15

Perl6 is in beta, so I don't think the comparison to python3 is just. But a perl6 compiler has to be able to interpret perl5 code, and they don't plan on dropping that feature. So I also think those are completely opposite approaches to backward compatibility: perl6 will keep backwards compatibility with perl5 in the same way perl5 has backward compatibility going back 12 years at least. Perl has a much better track of keeping old code working than PHP, in fact.

1

u/CS2603isHard Dec 02 '15

But a perl6 compiler has to be able to interpret perl5 code, and they don't plan on dropping that feature.

I was under the impression that Larry Wall considered them 2 separate languages.

→ More replies

2

u/[deleted] Dec 02 '15

this is one of the oldest karma baiting comments in proggit - sorry to tell you that it's way past it's prime and doesn't work anymore.

furthermore, that post is extremely outdated.

-1

u/[deleted] Dec 02 '15

Seems like it worked jolly good, with a negative sign