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

Where can I get Python online training?
You can get many institutes in google which are providing online training.
Taranum
What is the fee for php classess?
Php class fess:- Rs. 9k html css js core and adv php MySQL PDO and ajax
Manjunath
How can I learn PHP?
first understand what is web server. then what is server side programming language. then start understanding how submitting form can reach to a php program. how get and post work. then
Diwaker
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

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

Ask a Question

Related Lessons

What Would Be Life Cycle Of A Fresher After Campus In An IT Company?
1. Basic Technical Training: Since freshers are not subject matter experts so gone through 3 - 6 months basic technical training within Organization. 2. Technical Assessment: HR sends freshers to various...

How to Create A Master Page Template In PHP?
A master page template is essential to give a consistent look and feel to any website having multiple pages. It is quite easy to create a master page template in PHP using Dreamweaver. Let’s have...

Why Choose Magento For E-Commerce Shopping Sites?
There are many CMS and Framework available for Shopping sites then why we choose Magento for store what is the advantage behind them? There are many CMS and Framework available in market who give the...

How to create your website with PHP?
PHP is a server-side programming language used to create web pages that are more interactive than their HTML counterparts. PHP also optimizes the speed of web pages since processing occurs on the server...

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...

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