UrbanPro

Learn PHP from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Why do Python programmers hate PHP?

Asked by Last Modified  

1 Answer

Learn PHP

Follow 2
Answer

Please enter your answer

Trainer

I am a Python programmer who started learning about web programming using PHP. I probably have a say in this topic (even if I don’t hate PHP). Correct me if anything here is wrong or imprecise. First, let’s say PHP and Python are languages designed for different purposes. While PHP is mostly...
read more

I am a Python programmer who started learning about web programming using PHP. I probably have a say in this topic (even if I don’t hate PHP). Correct me if anything here is wrong or imprecise.

First, let’s say PHP and Python are languages designed for different purposes. While PHP is mostly useful in web programming, Python is a Swiss Army knife which can be used in a wide range of scenarios covering almost everything, including web programming. That is why they have different syntaxes, styles and libraries. Since Python is a multifunctional language, it looks more like other general programming languages than PHP, while PHP has some convenient syntaxes specifically for web programming. Those syntaxes may not cater to general programmers when they are used to the Python style, which is probably why people think PHP is ugly.

But to be honest, PHP was one of the mainstream languages for the web about 10 years ago, which is when I started learning web programming. If you have ever lived in that era, you know there were other similar languages such as ASP and JSP. That was a time when webpages started going from static to dynamic, and the most obvious way to do that is to embed dynamic content into the static one. That’s why people embed PHP, ASP and JSP in HTML pages. It’s not quite easy to imagine how Python can be embedded in such a way. After all, Python is not designed for that purpose.

Then you would probably wonder why Python plays a role in web programming nowadays. I think that’s because people now have modern ways of writing manageable, extensible and scalable web applications with the help from template engines, just as they were writing general applications. People now put more effort on the architect and application logic rather than page rendering. Those tasks are delegated to template engines. As a result, fully-featured languages get popular in web programming because they do better in other parts of the website and equally well (or better) even in page rendering. Developers no longer need to “embed” a dynamic language into a static HTML, which they think is a ugly way of doing things. But that is the very style of PHP, ASP and JSP. Considering the fact that more and more people now use Python as their first language to study programming, it’s understandable that they feel uncomfortable with something that looks drastically different.

But is that a hate? It probably depends. I’ve met programmers who publicly scoff at PHP. However, as a Python programmer, I don’t hate PHP even if most of my work is done with Python these days. I still use PHP if I want to serve something dynamic quickly. There doesn’t seem to be a quicker way of web prototyping. After all, PHP is designed for the web.

Language wars are stupid. Languages are designed for different purposes to satisfy people’s different needs. If a language becomes entirely useless, then programmers will migrate to other languages and that language will die. There doesn’t have to be a hate or a war. If a language is still alive, then it must be useful somewhere. Programmers shouldn’t be forced to use certain languages. Pick what you like and like what you pick.

read less
Comments

Related Questions

Looking for Yii Framework experts who are willing to train.
A constructor is a special method of a class in object-oriented programming that initializes an object of that type. A constructor will have same name as the class, and can be used to set the values...
Pritam
Can I build iPhone apps using Python?
Yes, you can use PyMob app where apps can be written purely in Python, and the compiler tool flow converts them in native source codes for various platforms. But there are some cons on using PyMob, the...
Sunil
0 0
5
Php-mysql Course Fees?
Rs 5000/- for the entire course
Piyush
Which is best to build web applications: PHP, Python, or Ruby? Why?
I have used almost all of the three language in my web working experience.PHP:It may be not that cool and I think it doesn't rely too much on the framework. Yes, PHP is just a language, but it is the only...
Sunil
0 0
7

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Top Programming Languages 2017: Every Beginner Should Learn
Every year a plethora of job opportunities are being created for skilled programmers. So if you are thinking of honing your coding skills it is really a bright idea. But with so many programming languages...

Read Your Gmail Emails Using PHP and IMAP
Hello Friends ,Recently I have worked on drip email campaign project for that I need to read emails using PHP From the gmail inbox. Here is the simple example for Read emails from the gmail: To start...

How to connect mysql database in PHP ?
<?php//db credential $servername = "localhost"; $username = "dbusername"; $password = "dbpass"; $databasename="dbname"; // Create connection$conn = mysqli_connect($servername, $username, $password,$databasename); //...

Components of Digital Marketing
Content marketing Search Engine Optimization (SEO) Paid Search (PPC) Email marketing Social Media Marketing Digital Display Marketing (Ad Ops) Web Analytics and Reporting Mobile Marketing 30...

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Recommended Articles

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Looking for PHP Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for PHP Classes?

The best tutors for PHP Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn PHP with the Best Tutors

The best Tutors for PHP Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more