zlacker

[return to "PHP 8.2"]
1. tiffan+y7[view] [source] 2022-12-08 13:18:28
>>TimWol+(OP)
What’s a feature that PHP is missing, that if it had it - would garner it more respect?

Note: I think PHP is way under appreciated.

◧◩
2. rob74+5a[view] [source] 2022-12-08 13:36:44
>>tiffan+y7
Hmmm, how do I say this without being downvoted... it's not as much a feature that is missing, it's unfortunately the whole origin of PHP as a language that wasn't really carefully designed, but just kinda grew organically (famously Rasmus Lerdorf didn't intend it to be a general purpose programming language at all, but "just" a templating language). Despite the efforts since PHP 7 (also partly already PHP 5) to make it more "professional", it won't be possible to completely shake off this legacy. Don't get me wrong, I like PHP as a no-nonsense language in which you can get web dev tasks done quickly and effectively, and I would pick PHP over Node any time, but the inherited warts are undeniable and at least some of them are here to stay.
◧◩◪
3. paulry+4c[view] [source] 2022-12-08 13:47:10
>>rob74+5a
Which warts?
◧◩◪◨
4. oaiey+mp[view] [source] 2022-12-08 15:14:41
>>paulry+4c
That I start a code file with a special tag, that I have to be careful not accidently emitting e.g. white space (because it is a template engine ;)), that I am not accidently emitting the source code of my program because a tag was not closed, ...

Like the poster above: I totally support PHP ... it is good, it has surprisingly well aged in the recent years, and it perfectly has its place ... but it has warts. Nothing bad, nothing tooling could not compensate ... but there are warts because of its origin.

Other languages has warts too: Java has no real generics, Python has it when you do indenting wrong and let us not start on JavaScript or god forbid VisualBasic. As a C# fanboy, i have to rely on others to see warts there ;)

[go to top]