I do actually pick it for several reasons.
1. I want to know if the environment I am going into is pragmatic about languages. If you are going to refuse to continue working with me over something so minor as PHP then we aren't a culture fit.
2. I want to showcase my best. I know this language in and out. It's the first language I learned and I have the greatest ease of building algorithms with it. I've had interviews where I was asked to do something with PHP that PHP did not support and I found ways to make it work.
3. In some ways I love the conversation that comes with positive interviews when using it. Oftentimes the interviewer isn't very familiar and it sparks discussion on the languages benefits and drawbacks further showcasing my skillset.
Sure as we progress along in the interview process I will switch to whatever language the company uses primarily but if I get a choice I always choose PHP.It's also the thing I'm best at!
They cherish their languages but are not fanatics.
It's so refreshing knowing that my websites auto update themselves and I never have to update them unless there is a legitimate reason to do so.
Backwards compatibility is the ONLY thing I care about in a framework. Life's too short to babysit some frameworks ideas of how my code should work ten years after building the damn thing.
I used to be Symfony snob too but tried Laravel and I definitely see its strengths.
Laravel was not the right choice with our homegrown, non-framework app, with an existing schema.
For a business that has engineers to manage this day to day it's less of an issue. For building things you want to live online untouched for a decade it's just not an option.
Laravel is nice to build stuff fast in one particular way. It's awful to maintain and heaven forbid you have a different idea about how things should be done.
Maybe because they have been actively sabotaging progress and dissing those pushing for progress? gophp5 in 2008 pushed everyone but Wordpress off PHP4 and some Wordpress core committers as recently as 2017 have called gophp5 an "abysmal failure" despite it was anything but.
My go to for this is to say "I don't think Typescript is needed most of the time". The snobs look at you like you just farted in their face.
But having done some coding interviews where time and space complexity were a factor, I found it easier to succeed with Python.
This is a terrible example, typescript (especially in 2023) is basically free with most setups (including vanilla) and easy to ignore for velocity then optionally enforce typechecking later.
A much better hill to die on would be large frameworks/tooling like react/angular/webpack.
In the grand scheme of things, talking solely about software projects not life in general, it kind of is.
Most modern languages, are interchangeable, and projects of most kinds have been done with all of them succesfully.
As long as the programmers for the chosen language are available, and the libs you want are there, for startups doing some web backend for example, it doesn't really matter if it's Python, Ruby, JS/Node, PHP, C#, Go, Java, CL, Kotlin, Clojure, and so on.
Besides, I included CL there.
And yet people would take a bullet for React and the JSX templates.
I was so confused when I heard that, "like... a HTML file?".
Keep going at this rate and we'll be using frames again.
That’s pretty much what htmx is…
Serving a static HTML file is not server-side rendering.
It's much dumber than that. The people advocating for SSR want the server to respond with HTML generated based on whatever is in the request.
This thread is so cope.
This has been fixed in PHP 8. https://wiki.php.net/rfc/string_to_number_comparison
That… makes it even worse.
Also, should 48 == "48.0" be true? How about "048", "48.", "0x30", " 48 ", "48foo", "3*16", "XLVIII", "forty-eight"?
If you decide languages based on minutiae like this, I can only pity you.
And yet people seem to keep inventing variations of this as "templating" languages.
We would have seen dramatically fewer bugs and injection attacks over the years if PHP had made <input value="<?=$value?>"> a perfectly safe and normal thing to write back in 2005.
The ability to mix html and code means it’s extremely easy to get started which is the big strength.
No idea how recent PHP is. It's hard to escape those opinions that formed fairly widely in the industry is, though.
You don't hear too much about it. You almost never notice it unless you're actually looking for it, unlike McDonald's with its ostentatious golden arches.
It's popularity is waning. But it's still everywhere. [0] There are a hundred other sandwich chains that have tried to do it better but none have managed the ubiquity of Subway.
People like to look down on it and espouse the alternatives, but when it comes down to it fast food can only ever be so good.
I guess that means that JavaScript is McDonald's?
[0] https://en.wikipedia.org/wiki/List_of_the_largest_fast_food_...
I don't think that applies though. If anything, laravel is pushing PHP into another "golden age" not seen since code igniter 2, with again a framework that does things not quite how they should be under the hood, but definitely how people need them to be to be fast and efficient, except this time backed up by a proper package management system, a much better and stronger language and an ecosystem based on reusable modules.
Does it have the favor of the modern hype or new language seeker or anything like that ? No, absolutely not, but when has PHP ever had that ?
Of over 100 I have only heard of 1/3: 35 in total.
I have only ever been into and eaten anything from half of those.
So fully 2/3 of the list I've never even heard of. Interesting.
My first reaction to this was that it's actually very accurate insofar that I genuinely wonder how one can like either of these and why they're so popular. At least JavaScript has the obvious excuse that it's the only thing that runs in a browser, so it's still more logical than the popularity of McDonald's.
And I've never had to deal with ESM/CJS/AMD whatever module nonsense with PHP. No transpiling anything, just edit and refresh. And so many useful functions out of the box (array_column anyone?).
I think its bad rap comes from its ubiquity. Pretty much any existing website I've had to work on has been a putrid mess. That's just the way codebases go unless you're a SaaS with a CTO who's hell bent on preventing that.
And since most of these putrid messes have been based on PHP, due to it's age and ubiquity, people blame it, due to observation bias.