We borrowed some code from that had nested ternaries without parenthesis. Turns out that as a fatal error in PHP 8 on our production server but not on the earlier PHP on our development server. Wow... a language with breaking syntax changes. I'll stick with sound , where you never have too few parenthesis.

@worldsendless
PHP had some flaws and problems so it was simply necessary to do a radical change at some point. Everything has been announced in advance, and there's always been a "deprecated" flag in advance to warn programmers. It's just like it is, I'm glad the PHP team finally released #PHP 8 where almost everything behaves like expected (and now the language is far better than #JavaScript, IMHO).

Follow

@amarok !!! What leads you to think it better than JS? (not a JS lover here, but historically I hate it less than old PHP)

ยท ยท 1 ยท 0 ยท 0

@worldsendless @amarok PHP is now effectively a typed language. JS is not. (TS doesn't count.)

JS async is just a mess to work with. #SorryNotSorry

The Packagist ecosystem is vastly more robust and reliable than npm/yarn/whatever.

Oth still have warts from their youth, and both have improved dramatically in the last decade. But I'd still rather work in PHP than JS most of the time for the type system alone.

@Crell
Just my subjective opinion, I know JS and TS quite well to compare them to PHP. That doesn't mean that JS is a bad lang. What I like about PHP is its similarity to C, also the slow speed of PHP's evolution is a key factor. Built-in support for types is a plus. I used to work fulltime as front-end dev for 10+ yrs. The amount of changes & new features during the past 5 years alone is just crazy, and JS is still able to surprise. PHP feels so calm. I just prefer back-end now.
@worldsendless

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.