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

it is charge for online course or not?
I found out from my experience that if there is no charge for the course, the students are not serious and even bunk classes. Also, the fees are one of the ways you can repay what a teacher provides you,:)
Farheen
Which is better, PHP or Python? Why?
Python . Simple syntax,More readable,General purpose programming language
Kartheek
0 0
5
As a fresher I have done Python training, but hardly getting response from any company. What should I do?
only having training in Python is not enough to be called for intervew. Better you should get real time certification course form reputed organisation with smart hand-on real project exposure. Try to have...
Yamini
0 0
6

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

Ask a Question

Related Lessons

PHP Intro.
What is PHP? PHP is an acronym for "PHP Hypertext Preprocessor" PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP costs nothing, it is free to download and...

A Brief About Php And MySQL
PHP is a recursive acronym which stands for Hypertext Preprocessor. PHP is essentially a coding or scripting language which can be utilized in diverse web development and software based applications. If...

SQL Tips (1 to 3)
SQL tip 1: Instead of Full Outer Join, you can use Union All. Difference is, Full Outer Join provides results side by side. Union All provides result s one by one. Note: MYSQL does not support Full...

Hi,
To learn online is really convenient for both the sides but still trust is risk factor until and unless you don't know the teaching style of your tutor.so I will give you small free session to decide my...

Handbook of websites for Website Developers/Designers (software professionals)
Know the trending languages(past & present) and their comparision with other languages: @ https://www.tiobe.com/tiobe-index/ Found an interesting website? identify the technologies used to build...

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