News for hackers. Stuff that matters.
Re:PHP 7.1.0 Released by gog on Friday December 02, 2016 @03:13AM (#13086991)
You can find a thing you don't like in any language.

Saying PHP is destined for the "language graveyard" is just spreading FUD around a language that made miraculous improvements in a last couple of years. Both in terms of speed and language features.

Modern PHP is a joy to work with.

Re:PHP 7.1.0 Released by rbanffy on Friday December 02, 2016 @04:09AM (#13087203)
> Modern PHP is a joy to work with.

Would you clarify that? I've not followed PHPs evolution but it never struck me as a particularly notable language except for the fact it used to be the easiest/cheapest to deploy apps for.

Re:PHP 7.1.0 Released by coldtea on Friday December 02, 2016 @04:50AM (#13087367)
It gotten tons of syntactic improvements and bells and whistles after version 5.

It got a proper, rewritten, parser.

It got a free-double-the-speed update for almost all working code in version 7.

It got a full featured package manager (composer).

It got many next-generation frameworks and libs that don't fall prey to the issues that plagued early PHP codebases.

It got the "share nothing" model correctly from the beginning.

It's still the easiest and cheapest to deploy, and has tons of extensions for everything.

There's active work for a JIT and async (a la Node/Tornado etc) hooks.

Re:PHP 7.1.0 Released by dingdingdang on Friday December 02, 2016 @05:32AM (#13087540)
Plus response times are vastly improved on widely deployed things such as Wordpress: https://www.cloudways.com/blog/wordpress-on-php-7-performanc...
Re:PHP 7.1.0 Released by chris_wot on Friday December 02, 2016 @06:50AM (#13087856)
I've recently started looking at Symfony. Pretty impressive really!
Re:PHP 7.1.0 Released by vesak on Friday December 02, 2016 @08:07AM (#13088230)
Be wary of Symfony if you need high performance and cannot use caching. Its runtime is not fast.
Re:PHP 7.1.0 Released by tyingq on Friday December 02, 2016 @10:02AM (#13089033)
Slim is lightweight, and somewhat similar to Flask or Bottle from the Python world: https://www.slimframework.com/

You can also lighten Symfony's footprint: http://symfony.com/blog/new-in-symfony-2-8-symfony-as-a-micr...

Re:PHP 7.1.0 Released by rbanffy on Friday December 02, 2016 @11:27AM (#13089910)
What are the issues that plagued early PHP codebases?
Re:PHP 7.1.0 Released by coldtea on Saturday December 03, 2016 @10:08PM (#13098603)
Namely, bad coding practices. Globals everywhere (including "register globals" enabled by default), horrible security practices (tons of XSS vulnerabilities for example), no modularity, mixed concerns, mixing HTML and PHP, etc...
Re:PHP 7.1.0 Released by babyrainbow on Friday December 02, 2016 @11:11AM (#13089753)
>It got a proper, rewritten, parser.

Great. Are you really telling that one of the selling point of the language is that it got a "proper" parser, In it's 7th iteration and 20 years later? What. A. Joke.

EDIT: And downvoted. Classic Php apologist response..

Re:PHP 7.1.0 Released by coldtea on Saturday December 03, 2016 @10:12PM (#13098614)
>And downvoted. Classic Php apologist response..

For one, I just saw your comment, so didn't downvote you when you wrote that. Others did.

That said, "classic X apologist" is beyond juvenile for my tastes, so any downvotes I'd call deserved.

Yes a language can get a proper parser "in it's 7th iteration and 20 years later" and still be good for some use cases and a success. In fact, the mere fact that it got to its 7th iteration and had a huge following despite not having a proper parser might point you to the fact that it should have gotten some other things very right to compensate.

But that would require thinking, instead of a knee jerk reaction and a general assumption that everybody using it is stupid and you are the clever one.

Re:PHP 7.1.0 Released by babyrainbow on Sunday December 04, 2016 @12:41AM (#13098921)
>some other things very right to compensate...

Yea, like letting people compare "0x0a" == "10" and have it return true. Sure. I can imagine some newbie somewhere looking at that and go "You can do that? That is soooo coool".

A lot of such things, that traded off sanity and security for ease of use made it popular. But that does not mean it got those things "right".

I am ignoring other inflammatory things you said, since I don't expect any better from someone who thinks php is hot shit. It is utter crap, and no one should have to start their programming career with utter crap like php when there are so many alternatives.

Re:PHP 7.1.0 Released by coldtea on Sunday December 04, 2016 @02:41AM (#13099195)
>A lot of such things, that traded off sanity and security for ease of use made it popular. But that does not mean it got those things "right".

Ease of use is sanity in its own right too.

And C has been praised to high heavens by the most hardcore of hackers, but nobody would dare call it "secure".

>I am ignoring other inflammatory things you said

I think you confuse what the word "inflammatory" means. You posted ad-hominens in both this and the previous comment.

Re:PHP 7.1.0 Released by babyrainbow on Sunday December 04, 2016 @06:49AM (#13099685)
>Ease of use is sanity in its own right too.

I am not sure what that means. By sanity, I mean sane/sensible/unsurprising behaviour. As an example, think of a gun with a feather touch trigger. It improves "ease of use", because you don't have to "pull" on the trigger and might improve accuracy for people inexperienced with guns, but it trades off safety completely. Php is like that. It was a language meant to process data coming from html forms. A lot of these insane behaviour can be attributed to that.

Because there hasn't been a formal/proper development/review process [1], only god know what hidden pitfalls there are hidden within the language, that is, in addition to the pitfalls people already know..

Php 7 is a dangerous farce, because it still has got all these problems, but is marketed/promoted as a "modern" language. Luckily, it seems that very few people are buying it..

[1] https://www.reddit.com/r/lolphp/comments/5fhmbg/if_an_invali...

Re:PHP 7.1.0 Released by coldtea on Tuesday December 06, 2016 @05:43AM (#13113654)
>I am not sure what that means.

It means that being easy to use is a desirable trait if you want a sane development experience. Having to go through bs hoops to use some language/tool/etc can drive you insane.

>By sanity, I mean sane/sensible/unsurprising behaviour.

And you'll find more or less the same amount of insanity in C or Javascript, as you will in PHP.

And in PHP it's mostly moot, because the insanity is in corner cases and stuff that's trivial to avoid.

Re:PHP 7.1.0 Released by allan_s on Friday December 02, 2016 @03:20AM (#13087015)
yes especially if you take in account that the active support for php5.6 will end in less than a month, and secury patches in 2 years (which is not that long in a career time), it will be more and more feasible to have your work "zen garden" full php7 if you want.