zlacker

[parent] [thread] 9 comments
1. felipe+(OP)[view] [source] 2022-12-08 15:08:36
Have you considered that these "detractors" might just be former users of the language themselves, who felt liberated once they tried something else, and want to help other people not feel stuck as well?
replies(2): >>giraff+F5 >>thevag+xr1
2. giraff+F5[view] [source] 2022-12-08 15:37:27
>>felipe+(OP)
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.

replies(1): >>xigoi+8K
◧◩
3. xigoi+8K[view] [source] [discussion] 2022-12-08 18:45:10
>>giraff+F5
Since when does PHP not have $?
replies(1): >>nerdbe+tO
◧◩◪
4. nerdbe+tO[view] [source] [discussion] 2022-12-08 19:04:41
>>xigoi+8K
What's the problem with '$'?
replies(1): >>xigoi+tQ
◧◩◪◨
5. xigoi+tQ[view] [source] [discussion] 2022-12-08 19:12:25
>>nerdbe+tO
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.
replies(3): >>within+v71 >>antifa+f82 >>dncorn+p7c
◧◩◪◨⬒
6. within+v71[view] [source] [discussion] 2022-12-08 20:30:09
>>xigoi+tQ
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.

7. thevag+xr1[view] [source] 2022-12-08 21:56:33
>>felipe+(OP)
I did php and moved to other languages. I don't feel liberated.

In fact php with composer and tooling is really good these days. Most people I've met (in person) who hate on php can't say why. They tend to equate php with wordpress.

I've picked up their projects and see many problems but I don't go blame the language they chose.

◧◩◪◨⬒
8. antifa+f82[view] [source] [discussion] 2022-12-09 02:49:51
>>xigoi+tQ
It must be embrassing when you read outloud "S-S-SWone thousand dollars".
◧◩◪◨⬒
9. dncorn+p7c[view] [source] [discussion] 2022-12-12 14:51:00
>>xigoi+tQ
Life is too short to care about stuff like this. It's like saying you don't like the color blue.
replies(1): >>xigoi+Chc
◧◩◪◨⬒⬓
10. xigoi+Chc[view] [source] [discussion] 2022-12-12 15:40:51
>>dncorn+p7c
Carpal tunnel syndrome is nothing to take lightly.
[go to top]