loading...
Cover image for Taking a Stroll With Programming Languages: What Does the World Think About PHP?

Taking a Stroll With Programming Languages: What Does the World Think About PHP?

katleenbrown440 profile image Kathleen Brown ・5 min read

Desc:- If something has become the talk of the town and you start hearing negative comments about it, consider that it has become popular. Criticism is a part of the jopurney towards success.

At its very core, everything that you see and read on the internet, is just modified, altered, mature, immature or conditioned opinion. Any search results you stumble on, expressing viewpoints about a particular topic, is nothing but an opinion. It can either be from an individual, from a group of people, or from an organization. The internet is nothing but a mass room huddled with a jillion voices reverberating endlessly and incessantly.

Learning to bifurcate and filter out among those multitudes of voices can sometimes be difficult. Because you may find tons of differentiating opinions about one single topic. For the sake of this article, let’s take PHP into account.

You will find enormously large amounts of opinions online about PHP stating a plethora of things that it can sometimes cloud your own judgement and implant a thought in your subconscious you didn’t know existed.

So today, we thought, why don’t we curate a few opinions about PHP and put them together under one roof. We have already heard a lot about how good PHP is or how fast PHP is dying, but did we ever take a step back and focus on what developers themselves, who’ve worked closely with programming languages, think about it?

Here are a few hand-picked interesting Quora questions and answers about PHP that will give you a fresh and different perspective about the programming language.

Why do programmers advise new programmers to ignore learning PHP?
Answer by: Brian Knapp, Christian, Software Engineer. I blog at Code Career Genius

People are advised not to learn PHP by fools who don’t like getting paid. And also, the reason to not learn PHP is the same reason people don’t wear bellbottom jeans anymore.

In simple terms, PHP fell out of fashion in favor of Ruby, Python, Clojure, JavaScript, and whatever else the flavor of the week is.

Now, there are some reasonable technical reasons for this. For example, PHP can encourage bad habits, security issues, and can make “beautiful code” seem like an impossible dream.

Fair enough, but that’s not a very good reason to ignore PHP as an opportunity.

The fact is, something like 20–40% of the internet runs on PHP.

There are millions and millions of websites built on WordPress, PHPbb, vBulletin, Magento, Drupal, and other extremely popular software packages.

More importantly, billions of dollars in value are built on top of PHP.

That means many billions of dollars are spent building and maintaining PHP code. Ignoring that opportunity can be extremely shortsighted and stupid.

Now, money isn’t everything and PHP isn’t always the highest paid skillset. But, for beginning programmers or people wanting to pick up freelance work, PHP is a great tool to have in your programmers tool belt.

And so yeah, PHP might not be beautiful or clean or nice like some other languages, but it is an unwise business decision to ignore it completely.

Actually, please do ignore it so that programmers like me can keep the money for ourselves. :-)

Why does PHP have a bad reputation?
Answer by: Dominic Ligot, Chief Technology Officer at CirroLytix

The usual suspects:

1.Because Wordpress.
2.People who can't get past PHP 3.
3.Ruby and Python fanboys who keep forgetting their semicolons and curly braces.
4.Because powering 79% of the internet means receiving 79% of petty complaints.
5.PHP die-hards who keep proclaiming in your face that Google, Facebook, Wikipedia, and Yahoo use it (even if they probably also use other languages).
6.(Re: #5) PHP haters who know that those websites STILL use PHP anyway.
7.People who can’t get past PHP 4.
8.Bad PHP code ignorant newbies write that still work anyway.
9.Node devs who believe and insist in Javascript everywhere.
10.People who can’t get past PHP 5.
11.PHP devs you ask don't care about your question.
12.HR recruiters who ignore precious Angular and React creds because they are only looking for Drupal and Laravel.
13.PHP 7 is so solid and killing speed benchmarks that it's already tantamount to an environmental disaster not to upgrade.
14.That you can write PHP and HTML together so easily. Like how dumb is that(?).
15.That guy who keeps looking for PHP 6.
16.The search function on your job site failed and the PHP jobs are clogging your search for PERL gigs.
17.Zealous devs who need to have an opinion.

Why does Python beat PHP in web development?
Answer by: Zee Xiong

Hahahahahahahahahahaha. Let me. Hahahahahahahaha. Catch my. Hahahahaha. Breath. Hahahahahaha.

Now that’s a good laugh. Let’s get on the serious note. Python by far is no where near what PHP can achieve for web development. Python is more powerful for desktop apps. Not websites. Yes, you can use Python to write websites, but it takes way too much effort to launch a Python website up. Python needs to run on something like Flask or Django in order for you to write websites using Python. The amount of time it takes for Python to execute and run through its process (Django, Python code, back to Django), PHP has probably rendered 5,000 pages and is waiting to render 5,000 more pages and Python is still only rendering 1 page.

Python is extremely slow on the web. PHP doesn’t require a framework for it to execute and process a website. That’s the downfall of Python. Python requires a web framework for it to actually operate on the web.

The closest competition for PHP is RoR and ASP.NET. And those are pretty tedious to code in. I’m learning ASP.NET right now and I’m just sitting there thinking to myself “why in the hell do you need all of this stuff? We don’t need half of the crap that this language uses in PHP.” It’s taking us 6 weeks + to make 1 website written in ASP.NET that can connect to a database. It takes me 5 minutes to write an equivalent website in PHP. Not only that, our admin dashboard looks like crap because we’re allowing everyone to be able to access it. If this was PHP, it would be a violation of security protocols. But hey, no one wants to talk bad about other languages. Only if it’s PHP.

In my ASP.NET class, we have to connect the UI to a bunch of different layers and on page startup, it’s extremely slow. Takes about 10 seconds or so to load up just a single page written in ASP.NET on Chrome. Takes a millisecond to load up my personal website written in PHP using MVC.

Some Python users however will say that PHP is crap or whatever they want to regurgitate. It’s just a load of BS. Python is a language that heavily relies on white space. That in itself is crap or “poor design”. People always complain about PHP being “poorly designed”. Ummm the fact that Python’s actual coding structure relies on white spaces in itself is “poor design”.

Conclusion

PHP as a language is mature and hence it has a large community of supporters. The same is the case on the flip side, since PHP has a large community of supporters, it has been matured over time. There are entrepreneurs and businesses still looking to hire php developers for complex and agile web development projects. And it seems, the popularity of PHP is not waning any time soon.

Posted on by:

katleenbrown440 profile

Kathleen Brown

@katleenbrown440

Tech Consultant In Enterprise Web & Mobile App Development Company Specializing in Iot,Big data,AR/VR.

Discussion

markdown guide
 

I mean, I'd love to make a long and detailed response, but it just feels like I'd be taking the bait. PHP is in a lose/lose position. As long as backward-compatibility is a priority, it will never evolve out of its horrific origins, and if backward-compatibility ever ceased being a concern, you'd be much better off choosing a different language and stack in the first place.

Let the past die. Kill it if you have to.

 

Sadly, given the ubiquity of WordPress-based websites, we're going to be stuck with PHP for a very, very long time. I have written WordPress (and Concrete5 and Joomla!) plugins. I'm not exactly impressed with PHP but it's there and I have to know enough to be dangerous without being deadly.

PHP is part of history and history is a legacy to be learned from. In our business, legacy is also history that must be dealt with in the present so that our clients can have a future.

 

Python by far is no where near what PHP can achieve for web development. Python is more powerful for desktop apps. Not websites.

This person has obviously never written a Python app or tried to write a Python web app. Jesus christ, where did you find these people? Incredibly ignorant and misguided attempts to make people think PHP is somehow a good option.

Unlike PHP, Python is suitable for many things. Python vastly surpasses PHP in API development, and isn't all that great for writing desktop applications.

 

2.People who can't get past PHP 3.

If PHP 7.4 looked significantly better, people would get over PHP 3 much more easily. PHP 7.4 has fixed almost none of the significant issues in the language that have been around at least since 4 or early 5.

 

Would you mind listing a few of these significant issues?

 

Not really, I tried to list them to an earlier post by one of these near-spambots from the same company and they hid my comments before the whole post was removed so it's not worth the effort 😄

Most of these haven't been fixed in PHP 7.4 eev.ee/blog/2012/04/09/php-a-fract...

 

while I agree that 50% of the article is true, it's just what it is, PHP already "fell outta fashion"
It's like trying to use Analog to make a mixtape while there are other Digital alternatives that make it easier and offers more functionality
Take JS and TS for example, I see TS taking over JS in the possible future because of the same props that Python/Node is taking over PHP

 

Would you mind expanding on this:

TS taking over JS in the possible future because of the same props that Python/Node is taking over PHP

Particularly what you mean by "same props"?

 

imo, it's quite simple, TS is a superset of JS, meaning and this is from personal xp, I found out it helps me write concise code and I am able to keep up with a uniform code pattern, I feel its even more secure, and no extra coding required in doing so.
That being said, I'd rather introduce new programmers to consider TS rather than JS.

 

PHP "in a word" ? GARBAGE - i should know ive been using it for 10 years

 

There is no project where PHP is the best option.

 

It’s just a load of BS. Python is a language that heavily relies on white space. That in itself is crap or “poor design”. People always complain about PHP being “poorly designed”. Ummm the fact that Python’s actual coding structure relies on white spaces in itself is “poor design”.

Argumentation on the level of a child, "my shirt is not ugly, your shirt is ugly because it's green".

 

People are advised not to learn PHP by fools who don’t like getting paid.

What an incredibly ignorant statement. PHP programmers are among the lowest paid in the industry 😄