News for hackers. Stuff that matters.
Re:What's new in PHP 8? by sir_pepe on Friday August 14, 2020 @03:22AM (#24154842)
As someone who wrote their last lines oh PHP in something like PHP 5, this list tickles my desire to take PHP for a spin again. Not only does the language appear to be much improved, but also the frameworks look so appealing! I'm seriously over dealing with all the low-level plumbing that comes with building Node/REST SPAs just for what's essentially a bunch of forms.
Re:What's new in PHP 8? by obayesshelton on Friday August 14, 2020 @04:40AM (#24155420)
Laravel is a great framework to work with, I would seriously recommend giving it a try.

As for NPM and the JavaScript packages, this is a flipping nightmare and I hate working with it!

Re:What's new in PHP 8? by azangru on Friday August 14, 2020 @08:21AM (#24156932)
I hate to state the obvious, but it's the matter of familiarity.

I've been working almost exclusively with javascript and typescript for the last 4-5 years; so that now, while trying to write an amateurish Symfony project (because shared hosting) and appreciating the maturity of Symfony, I still hate almost every moment of it and hope I could have used typescript.

Anyway, what's wrong with npm and how is it so different than composer?

Re:What's new in PHP 8? by flamemyst on Saturday August 15, 2020 @03:15AM (#24166735)
One that I can think of:

The way npm install always check latest package version and use them, even if package lock already exists. Which broke apps build many many times due to developer does not recognize this behavior. I know there are npm shrinkwrap and npm ci. Its just other package manager usually follow lockfile on install and have other command to upgrade the lockfile.

Also npm install download gazilion file for each dependencies. With deep directories.

In the past, there are problem because npm way of installing dependencies and hitting this infamous windows file path length limitation.

All are now already fixed or have alternative. But at that time, composer definitely much simpler and reliable.

Re:What's new in PHP 8? by esistgut on Friday August 14, 2020 @04:47AM (#24155468)
If you need APIs (REST or GraphQL) take a look on Symfony / API Platform https://api-platform.com/
Re:What's new in PHP 8? by cutler on Friday August 14, 2020 @07:54AM (#24156688)
That looks amazing. I'm going to be busy exploring its possibilities for the next few days.
Re:What's new in PHP 8? by nurettin on Friday August 14, 2020 @05:22AM (#24155678)
Data classes, attributes, matching expression, all excellent changes. Just missing async/await syntax to defer io bound tasks.