News for hackers. Stuff that matters.
Re:PHP 8.2 by giraffe_lady on Thursday December 08, 2022 @10:37AM (#33908964)
Right but if someone stomped in here talking shit about for example javascript's verbose function notation, poor linting tools, and lack of type checker we'd be like what year are you from? We all got burned by that stuff, we all hated it circa 2016, it's all been addressed now. Javascript still has problems but those aren't it and any conversation about it includes that nuance.

Php is in a very similar situation, the difference is you can't escape javascript so we all to some extent keep up with its developments. People who leave php left it at a certain point and their understanding of its issues is frozen there. It's very predictable and boring honestly.

Re:PHP 8.2 by xigoi on Thursday December 08, 2022 @01:45PM (#33911473)
Since when does PHP not have $?
Re:PHP 8.2 by nerdbert on Thursday December 08, 2022 @02:04PM (#33911742)
What's the problem with '$'?
Re:PHP 8.2 by xigoi on Thursday December 08, 2022 @02:12PM (#33911866)
For me, it makes code harder to read because my brain can't stop pronouncing it as “s”, so something like `f($x, $y, $z)` reads like “eff sex, swy, szee”. And for writing, requiring a shifted key before every identifier is a lot of pinky strain. Not to mention that it's completely useless noise.
Re:PHP 8.2 by withinboredom on Thursday December 08, 2022 @03:30PM (#33912922)
But it lets you do things that are absolutely wild without weird syntax or setting up reflection. $obj->$dynamic_var. Or $$dynamic_obj->$dynamic_fun().

Whether or not you should be doing that is another matter… but it’s useful in some cases and easier to grok than using reflection or using array syntax on an object (like JavaScript).

After awhile, you don’t even notice the $ to be honest.

Re:PHP 8.2 by antifa on Thursday December 08, 2022 @09:49PM (#33916812)
It must be embrassing when you read outloud "S-S-SWone thousand dollars".
Re:PHP 8.2 by dncornholio on Monday December 12, 2022 @09:51AM (#33955200)
Life is too short to care about stuff like this. It's like saying you don't like the color blue.
Re:PHP 8.2 by xigoi on Monday December 12, 2022 @10:40AM (#33955833)
Carpal tunnel syndrome is nothing to take lightly.