PHP
There used to be a rant here about how much I
hated PHP, but it's 2022 and I have much more
important things to be bitter about. Also I was
going through it literally just now, it contained
a fucking "r" slur, and that ain't cool. Jesus
fucking Christ, I'm so sorry.
PHP has pros and cons. A lot of the cons are
"gotchas".
-
It has a mostly sane object system.
-
It's 2022 and the defaults aren't god-awful
insecure anymore.
-
Yes, the built-in functions still have
inconsistent names.
-
Yes, the ternary operator isn't
right-associative like it's supposed to be.
-
Variables are automatically local in functions
and methods and that is GOOD.
-
Class names, function names, and method names
are case-insensitive and that is domb.
-
The closure syntax is a little goofy with that
"use" thing, but arguably, having to
explicitly specify what variables you're going
to use that are outside of the function is
GOOD.
-
|| and && always return 0 or 1, instead of their
left or right operand.
-
I used to love Mason (Perl) but it's not easy
to deploy and any nematode can deploy PHP.