News for hackers. Stuff that matters.
Re:Goro – An implementation of PHP written in Go by mattigames on Monday November 26, 2018 @06:35PM (#18537836)
A great way to look into the future of languages is checking how many people is learning it now compared to the last few years, a great tool for that is google trends and things don't look good for PHP: https://trends.google.com/trends/explore?date=all&geo=US&q=p...
Re:Goro – An implementation of PHP written in Go by colecut on Monday November 26, 2018 @06:55PM (#18537933)
Re:Goro – An implementation of PHP written in Go by The_Amp_Walrus on Monday November 26, 2018 @07:14PM (#18538066)
> Today, PHP is used by more than 80% of all the websites _whose server-side programming language we know_

I find it pretty annoying that they don't post stats on the websites that they couldn't classify. I think it's likely that their survey suffers from some level of survivorship bias: only websites that loudly announce their tech stack get counted.

So, how do they know which programming language is being used by a server? From https://w3techs.com/faq, they look at:

- HTML elements of web pages

- Specific HTML tags, for example the generator meta tag

- The URL structure of a site

- HTTP headers, for example cookies

- HTTP responses to specific requests, for example compression

I typically run Python / Django sites, and the only way, that you would know I'm running Python is a few Django-specific security/auth cookies. _Maybe_ that stuff gets picked up by their crawler. If I was running another Python web framework, like Flask, then you'd have no idea what kind of app server was sitting behind NGINX.

Re:Goro – An implementation of PHP written in Go by chc on Monday November 26, 2018 @07:14PM (#18538071)
I suspect an enormous number of those are WordPress blogs and MediaWiki sites, and I don't feel like that number is very useful without breaking those out. It's a bit like saying Fortran is popular in data science because SciPy is implemented partly in Fortran — not so much an indicator of overall language health as it is an artifact of one product's popularity.
Re:Goro – An implementation of PHP written in Go by PunchTornado on Monday November 26, 2018 @08:40PM (#18538587)
By your tool, then it means that javascript is dying: https://trends.google.com/trends/explore?date=all&geo=US&q=j...

Would you say that JS is dying?

Not to mention Java, which from Google trends it looks like it's an elephant half-way to the cemetery already https://trends.google.com/trends/explore?date=all&geo=US&q=j...

Re:Goro – An implementation of PHP written in Go by ceejayoz on Monday November 26, 2018 @06:43PM (#18537875)
I'm not sure that's a great way to evaluate things.

Add in "Laravel" and things look pretty different: https://trends.google.com/trends/explore?date=all&geo=US&q=p...

I know I personally steer any newbie away from Googling up "php tutorial" - most of them are horrible, full of bad coding practices and vulnerabilities. I steer them to a good framework and suggest they peruse its docs.

Re:Goro – An implementation of PHP written in Go by CydeWeys on Monday November 26, 2018 @07:12PM (#18538043)
This is a more fair comparison: https://trends.google.com/trends/explore?date=all&geo=US&q=p...

You can't just compare searches for tutorials on one platform against an entire other platform itself like that.

The vast, vast majority of PHP out there does not use Laravel.

Re:Goro – An implementation of PHP written in Go by TigerHimself on Monday November 26, 2018 @06:50PM (#18537911)
So you are saying that PHP is dying since 2004. That’s ridiculous. There are new languages and more alternatives today that’s it.
Re:Goro – An implementation of PHP written in Go by crimsonalucard on Monday November 26, 2018 @07:20PM (#18538110)
It just takes a long time for certain things to die.
Re:Goro – An implementation of PHP written in Go by quickben on Monday November 26, 2018 @07:53PM (#18538322)
That argument can be made from the other side about golang being artificially kept alive by Google.

The comparison isn't on equal footing.

Re:Goro – An implementation of PHP written in Go by crimsonalucard on Monday November 26, 2018 @08:19PM (#18538479)
Is golang dying? Is it losing steam at all?
Re:Goro – An implementation of PHP written in Go by spejic88 on Tuesday November 27, 2018 @07:51AM (#18541890)
so are you saying that for javascript the things are not looking good as well ?

https://trends.google.com/trends/explore?date=all&geo=US&q=p...

Re:Goro – An implementation of PHP written in Go by mattigames on Tuesday November 27, 2018 @03:53PM (#18546567)
Not really, its a complex issue, look how five years ago "PHP tutorial" was more searched than JS tutorial but this year "JS tutorial" has almost the double than PHP: https://trends.google.com/trends/explore?date=today%205-y&ge...