zlacker

[parent] [thread] 7 comments
1. giraff+(OP)[view] [source] 2022-12-08 15:37:27
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+tE
2. xigoi+tE[view] [source] 2022-12-08 18:45:10
>>giraff+(OP)
Since when does PHP not have $?
replies(1): >>nerdbe+OI
◧◩
3. nerdbe+OI[view] [source] [discussion] 2022-12-08 19:04:41
>>xigoi+tE
What's the problem with '$'?
replies(1): >>xigoi+OK
◧◩◪
4. xigoi+OK[view] [source] [discussion] 2022-12-08 19:12:25
>>nerdbe+OI
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+Q11 >>antifa+A22 >>dncorn+K1c
◧◩◪◨
5. within+Q11[view] [source] [discussion] 2022-12-08 20:30:09
>>xigoi+OK
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.

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