News for hackers. Stuff that matters.
Re:80% of the Web Powered by PHP (2017) by _RPM on Friday March 22, 2019 @11:34AM (#19463540)
This is slightly off topic. But PHP has a great devloper experience, in general, now with vscode, and autocomplate, find all references, etc. But the best framework out there is Laravel. It's great, but the maintainer doesn't seem reliable. Every single release has some type of backwards incompaitible change to it of which they don't document all the changes. So it's basically a blackbox if you are to upgrade your laravel/framework version.
Re:80% of the Web Powered by PHP (2017) by sowhatquestion on Friday March 22, 2019 @12:25PM (#19464108)
I've heard this criticism of Laravel a couple times and never understood it. I've been using the framework for years and have never had an issue with upgrades. There is a clear and comprehensive upgrade guide with each release, as well as a third-party package called Laravel Shift that can inspect your code and perform automatic upgrades in many cases. I've found there are only one or two breaking changes per minor version release (which seems reasonable to me), and they are always well-documented.

Aside from that, I'm glad you've highlighted Laravel, which—despite being the most popular server-side Web framework on GitHub—gets virtually no attention from HN. It's typical to use Laravel in the old server-side rendered Rails paradigm (which is still probably best for some applications), but I've had success using it to develop APIs as well. Core features like the ORM, job queues, dependency injection, email templating, etc, are very solid, and the ecosystem of packages around it is phenomenal. I would recommend it to any Web developer.

Re:80% of the Web Powered by PHP (2017) by joshcain on Friday March 22, 2019 @03:09PM (#19465855)
Laravel also as a lightweight version called Lumen for simpler APIs and things. It includes a lot of the features of core Laravel but has a more stripped-down application structure.
Re:80% of the Web Powered by PHP (2017) by ficiek on Friday March 22, 2019 @11:46AM (#19463668)
The PHP experience was one of the worst experiences I have ever experienced.
Re:80% of the Web Powered by PHP (2017) by _RPM on Friday March 22, 2019 @11:52AM (#19463723)
PHP is very fast. The tooling is great, and it's very easy to get started. VSCode with the right extensions makes PHP development fun.
Re:80% of the Web Powered by PHP (2017) by dcbadacd on Friday March 22, 2019 @12:04PM (#19463856)
D:

Which are the "right extensions" because what I saw was not "fun" at all.

Re:80% of the Web Powered by PHP (2017) by la_fayette on Friday March 22, 2019 @01:12PM (#19464592)
Have you ever built a web application with java?
Re:80% of the Web Powered by PHP (2017) by nobleach on Friday March 22, 2019 @04:02PM (#19466343)
Java EE? Yeah, I did not enjoy that at all. The current blend of Spring Boot, Micronaut, Vert.x, or especially Quarkus.io? I love it!
Re:80% of the Web Powered by PHP (2017) by la_fayette on Saturday March 23, 2019 @02:40AM (#19469336)
Ok. I agree vert.x and quarkus.io really look promising! I was using the play framework which looked similar at first glance and then was horrible as java was just at the surface and one needed to use scala in the end. Learning scala with a java team under time preasure was not a good experience...
Re:80% of the Web Powered by PHP (2017) by nobleach on Tuesday March 26, 2019 @11:39AM (#19492809)
I did Play v2 with Scala... I can agree, it was not pleasant. (I had just gotten off a year-long Ruby on Rails/ JRuby on JVM stint though - so "pleasant" is a relative term)
Re:80% of the Web Powered by PHP (2017) by ClashTheBunny on Friday March 22, 2019 @11:49AM (#19463704)
What year was this?
Re:80% of the Web Powered by PHP (2017) by cturhan on Friday March 22, 2019 @12:02PM (#19463830)
How come it has a best developer experience? Even setting up xdebug and starting debugging is a pain. Most of the developers codes in php use `echo` for a long time.

PS: I haven't used php for 2 years, let me know if there is an update on debugging.

Re:80% of the Web Powered by PHP (2017) by la_fayette on Friday March 22, 2019 @01:23PM (#19464703)
Yes I totally agree that setting up or rather understanding how the debugging cylcle works with php is not straight forward. It doesn't work out of the box and one has to dig into php internas. However, it pays off, as one can do remote debugging on e.g. a docker development machine or similar...

I am not sure how well such a feature is supported in javascript, ruby, java or what not out of the box...

Re:80% of the Web Powered by PHP (2017) by jcroll on Friday March 22, 2019 @12:04PM (#19463865)
Have you tried Symfony?
Re:80% of the Web Powered by PHP (2017) by _RPM on Friday March 22, 2019 @12:14PM (#19463979)
Not in a few years. Does the maintainer value backwards compatibility?
Re:80% of the Web Powered by PHP (2017) by dmitriid on Friday March 22, 2019 @01:02PM (#19464470)
They do. They have a deprecation path, and descriptions on what to change when versions change.