I have this opinion of PHP. I don’t use it, and I look for alternatives when I find something that does what I want that’s written in it.
Your callout is fair though. I’m not going to switch or anything. I’m happy with my favored scripting language. But I’ll try to not be dismissive of projects that are written in PHP.
If you want to check some modern PHP code, you can check some pieces of mine (this project in particular could have a little cleaner code, but I think it demonstrates well what modern PHP can look like):
Your examples are ironically a great showcase of what I hate about PHP. Java-style object-obsessed programming with long names, piles of design patterns and dozens of imports, along with C-style syntax and dollars before variable names.
I have this opinion of PHP. I don’t use it, and I look for alternatives when I find something that does what I want that’s written in it.
Your callout is fair though. I’m not going to switch or anything. I’m happy with my favored scripting language. But I’ll try to not be dismissive of projects that are written in PHP.
If you want to check some modern PHP code, you can check some pieces of mine (this project in particular could have a little cleaner code, but I think it demonstrates well what modern PHP can look like):
Your examples are ironically a great showcase of what I hate about PHP. Java-style object-obsessed programming with long names, piles of design patterns and dozens of imports, along with C-style syntax and dollars before variable names.