TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lets talk PHP

4 pointsby morogabout 7 years ago
The HN community is clearly (in general) anti-PHP. If HN was all you read, one would get the impression that PHP is a dying language with no jobs available for developers. This seems to be the opposite of what I have seen (as a mid-level dev with .NET &amp; PHP experience). My 12 year old nephew is starting out his coding career with Javascript and I want to get him some experience with server side languages too where he can immediately get hacking on some real world examples (and not just &#x27;hello world&#x27;)<p>Lets see...the most popular (and best) CMS - Wordpress is PHP, most of the popular open-source e-commerce platforms are PHP (Woocommerce, Magento, etc), the biggest social network is PHP (Facebook), the best open source Dropbox competitor is PHP (OwnCloud), then we have Wikipedia, Moodle, Limesurvey...it seems the best competitor for commercial incumbants is an open source PHP projects every time...<p>So can someone illuminate me why the HN community is so anti-PHP, and why my nephew might not get a job when he finishes school (in 5 years) if all he knows is PHP &amp; Javascript?

4 comments

krappabout 7 years ago
PHP (and javascript to an extent) is a very mainstream programming language with a low barrier for entry, and isn&#x27;t associated with academia, engineering or intellectual cachet. PHP is a &#x27;lowbrow&#x27; language, and a lot of people on Hacker News want to status signal as &#x27;highbrow&#x27;, so they act like hipster elitists towards it.<p>Some people stopped using PHP years ago and either aren&#x27;t aware, or don&#x27;t care, that it like other languages has evolved and improved over time.<p>Some people don&#x27;t like its inconsistent syntax and weird edge cases and... yeah, fair enough. Some people want a cathedral and find PHP a bit too bazaar.<p>My opinion - use PHP if you want to, don&#x27;t use it if you don&#x27;t, but being emotionally invested in negativity towards a programming language is silly either way.
coldteaabout 7 years ago
&gt;<i>So can someone illuminate me why the HN community is so anti-PHP</i><p>Not everybody is. Mostly newbs who think it makes them look smarter if they bash what&#x27;s unfashionable (though for people who code in JS, to badmouth PHP as a bad language is rich), and holier-than-thou types, who value purity over pragmatism, and have never created anything substantial anyway.<p>People who code in C or C++ for example, have produced working products, and know all the bad areas and deficiencies of their languages but appreciate them for the results and pragmatism they allow, would think twice before bashing PHP for not being some perfect language.
coolguy4about 7 years ago
PHP is a pain to work with. It doesn&#x27;t have the tools that other languages have. The libraries available for PHP tend to be buggy or poorly designed.<p>The market for PHP developers isn&#x27;t going to go away, but if you work somewhere that is using PHP there is a good chance you won&#x27;t be working somewhere with a strong engineering focus. So you probably won&#x27;t have great people to learn from and you will limit your growth as a software engineer.
评论 #16883315 未加载
评论 #16883453 未加载
fiivabout 7 years ago
I stopped doing PHP years ago (php 5, if I remember correctly). At the time, here was my beefs with it. I don&#x27;t know if they&#x27;re still true since I moved on to greener pastures (and have had no trouble finding work, by the way, so your nephew will be fine too).<p>- I did not like relying on web server software to handle routing in my applications<p>- There was no nice way to handle dependencies (I&#x27;ve heard there is now composer but then there was not).<p>- Redundant and useless modules. For example, several that handle XML, 2 that do Mysql, etc.<p>- Inconsistency. Can&#x27;t recall the specific instance of this but two similar functions would work identically but accept arguments in different order.<p>- Messing with php.ini was disgusting.<p>I still know a webdev who works in PHP (Laravel specifically) and he tells me the language has improved a lot. I&#x27;m happy for him, but I have no desire to return.<p>Since then, I&#x27;ve worked with Node.js, python, ruby and elixir and am really glad I&#x27;ve had that experience.