Sujet : Re: C and C++, promotion, stabilization, migrationFor embedded
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 27. Aug 2024, 15:43:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vakomv$302ee$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
On 8/27/2024 8:35 AM, Simon Clubley wrote:
On 2024-08-24, Single Stage to Orbit <alex.buell@munted.eu> wrote:
On Sat, 2024-08-24 at 03:07 +0000, Lawrence D'Oliveiro wrote:
On Fri, 23 Aug 2024 22:23:18 -0400, Arne Vajhøj wrote:
>
Unicode was also the primary motivation behind PHP 5->6. But it got
cancelled and PHP did 5->7 without going unicode.
>
To be fair, that little peccadillo does get lost in the avalanche of
other reasons why PHP is bloody awful ...
>
I'll drink to that.
When doing PHP work, I have created a monitor library that runs at the
start of every PHP script I create and monitors the script for errors
that the PHP language lets through by default (and bloody well should not).
It routinely catches stupid mistakes that PHP would otherwise let through
and that would have caused additional debugging effort.
No, I am not allowed to share it unfortunately.
I do NOT like PHP, but I am forced to use it for some of my work because
of its established ecosystem.
Some languages has a bad rep despite in certain circles
despite being widely used: Cobol, Visual Basic, PHP etc..
The fact that they are widely used indicate that they
somehow got something right.
Regarding PHP then there is some things one need
to realize:
* that type of language is intended to make coding
easy, not to make it difficult to make errors, or in
other words PHP was never intended to compete with
Modula-2, Ada, Rust etc.
* PHP has a lot of historic baggage, stuff was added
back in late 90's and early 00's, which for web technology
was very different from today, and as we all know then
getting rid of old stuff can be tricky
* PHP especially in the early days were definitely Bazaar not
Cathedral, if someone wanted to add something then it was
considered fine, and the result is that PHP is not very
consistent
* PHP is a very easy language for beginners to start with,
so guess what a lot of the most hopeless wannabee software
developers use PHP and produce huge piles of crap code, and
that dominate many PHP forums
But:
- use new version (8.x)
- error_reporting = E_ALL
- write 20's PHP not 00's PHP
- use the optional typing
- etc.
help a bit.
Arne