Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> somehow gets rid of the undeserved reputation

That reputation is a competitive edge for companies and people who embrace PHP. They get shit done for the business and grow revenue while the rest of the tech community is rewriting basic tooling for the 50th time in Rust on a Kubernetes-powered back-end with a React front-end powered by a GraphQL API layer.



PHP allows folks without a strong background to solve some simple business problems which, in general, is a good thing. But once the project exceeds a certain complexity threshold (which I admit many business problems never do), this approach hits a wall: things break and fixing it breaks more things and it is an uphill battle to move in the right direction. Adding a significant new capability -- forget it.

To make things worse, this cannot easily be fixed because the implementation is a hodge-podge of ideas and functions. You cannot find good architecture people who want to work in PHP to clean it. It cannot easily be re-architected because it captures a lot of business wisdom. And business people (rightly) suspect pitches for a new built-from-scratch solution: sure, it will be fast and maybe it will be reliable; but will it solve their problem? will employees need to be re-trained? etc.


One could swap PHP for any possible language and your comment could still be true, because you're describing project management and software architecture failures.

It reads like you're talking about a specific project and trying to generalize?


Facebook ($750B), Slack ($15B), and Etsy ($15B) would beg to differ. But whatever, your arrogant, gatekeeping and elitist mentality is primarily a roadblock for your own career growth.


Facebook didn’t make its money because of innovative PHP uses. And it based on this (somewhat old) discussion the quality of code at Facebook is universally terrible:

https://www.reddit.com/r/programming/comments/3r90iy/faceboo...

Which I am not blaming PHP for specifically, but rather that “you say PHP sucks but Facebook made a lot of money” is not an argument and is particularly dumb for Facebook specifically.

And the personal attacks are really not ok.


Wow, chill. I do not know what part of my post you reacted to, but to clarify, I do not mean that professional software engineers working on PHP are unskilled. What I meant was that PHP and its frameworks allow business person to solve simple problems without hiring a good software developer. Which is OK in many cases, but when this fails to work, it fails hard in a way that is both painful and difficult to quickly address.


You just reiterated it. Your view is that PHP is only used by non-educated simpletons and who are only capable of solving the most mundane of business problems. This sort of elitist attitude is really frustrating on a forum that's supposed to embody the "hacker" spirit, that is, building things and getting shit done without worrying about whether or not someone is going to come along and criticize the correctness of their code while blissfully ignoring their innovative idea, or the fact that it works, and the impact on the world. It's pure gatekeeping garbage.

This of course is coming, like usual, from someone who spent a significant portion of their life in academia and then moved to R&D and still has yet to make a dent in the world, or likely their student loans.


Mate, I will try one more time. (A implies B) does not mean (not A implies not B). Those are unrelated logical statements.

As an unrelated example, almost anyone can now do their own accurate temperature and blood pressure measurements, so the vast majority of temperature measurements is done by those with no medical training. This does not mean that nurses and doctors who do the same measurement (that a middle school student can do) are any less skilled in medicine, let alone "non-educated simpletons".


"What I meant was that PHP and its frameworks allow business person to solve simple problems without hiring a good software developer..."

There seems to be an implication that an org using PHP has not also hired good software developers. Or that a good software developer would not use PHP.

My logic skills may be a bit rusty at this point, but I suspect that's what altdatathrow was reacting to.


That’s not how I read it.

My take of the GP was more that they believe the _strength_ of PHP is that businesses that don’t have an existing pool of SWE talent can start solving problems with more or less whoever they can get their hands on (I’m trying to be careful not to imply that the “whoever” here is a poor engineer - just that they might not necessarily need to be experts).

Then when those projects get traction and start to grow and an engineering org starts to grow and mature around it (with plenty of “good” engineers, whatever that means), the _weaknesses_ of PHP may come to the forefront, making maintaining & expanding the PHP project difficult.


Thank you, this is what I meant. I probably could have made my original post clearer.


FWIW I've interpreted your posts in the same way as the other person. They come across as deliberately inflammatory.


That's not the languages fault, it's the incompetence of the people trying to use it.


Ah, “you’re holding it wrong.” Good languages make it easy to build and maintain robust, scalable, and secure solutions to problems.


I understand the sentiment, but historically there has been a lot more web-framework churn in PHP compared to other languages.

The “framework du jour” and the set of best practices have changed way more often in PHP than in any other language, perhaps as much as, or more than Javascript.


> I understand the sentiment, but historically there has been a lot more web-framework churn in PHP compared to other languages.

That has not been my experience. When I used to work with that tech stack, the major framework choice only ever had 3 options:

Zend Framework, Symfony and Laravel.

From what I hear Laravel is the industry leading and there's no sign of that changing.

Sure there are other less popular frameworks just like in other languages.

> The “framework du jour” and the set of best practices have changed way more often in PHP than in any other language, perhaps as much as, or more than Javascript.

PHP have had a published standard specification for framework and component interoperability for long time now:

https://www.php-fig.org/psr/


> That has not been my experience

Sure, but this is not about personal experience, but rather about history. Maybe it just happened before your time? Also, please read my reply in context.

Pretty much every other language that's similar in purpose and popularity is provenly more stable regarding framework popularity than PHP.

Sure it feels great to bash Rust and Kubernetes or whatever like the GP poster did, but PHP suffered from the same problems until very recently, whereas Python, Ruby, Java and C# among others did not.

Even Javascript has been historically more stable in the backend than PHP: it's been pretty much just Express from almost the beginning, and other contenders never reached much popularity.


I understand what you are trying to say but Kubernetes and React complement services written in PHP, the former can deploy and orchestrate them while the latter offers an option for SPA apps written in PHP. Also, Rust when written where it should be written, can enhance PHP services that require fast and secure components. But yes, trying to replace what PHP is good at (serving content) with Rust is not really the best thing to do.


"SPA apps written in PHP"

huh? that sounds like a contradiction in terms.


You can have a PHP server rendered page that can hold multiple SPAs written in React, imagine a portal like Liferay where each portlet is its own React app. Or imagine Steam shop that is using React for some of its components, like its new chat system which is a SPA integrated into Steam network.

* Yes, I should have said "integrated" in PHP instead of "written".


Definitely a weird thing given PHP’s heritage. Of course it’s totally possible to write JSON API endpoints in PHP.


But the new stack is 12% faster!!!!*

*We didn't re-run benchmarks after fixing edge cases




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: