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

Please Tell Me About PHP ?
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It allows...
Indal
What are some good logical programming questions for php interview?
1. What is the full form of PHP and what is the PHP? Ans: the full form of PHP is Hypertext Pre-processor. Php is server-side scripting language and Its open source and freely available. PHP easily...
Rakes
0 0
5
What kind of interview questions are asked for Advanced PHP?
In Advance PHP interview questions will be related to below chapters 1) Concept of OOPS 2) Concept of MVC 3) Store procedure, Index, View, Trigger in mysql 4) Web Services 5) CMS
Manshi
What is the fee for php classess?
Php class fess:- Rs. 9k html css js core and adv php MySQL PDO and ajax
Manjunath

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 is the difference between PHP and PYTHON
Let's start with PHP: - Ideal for standard web development- Easy integration with MySQL- $_GET and $_POST built into the language- C-Esque syntax Primarily used on an Apache server (Routinely, you...

User Authenication In PHP: Some Advanced echniques
User Authentication in CodeIgniter: Goals Security: We want our login system to be secure, we want to do everything we can to stop people’s accounts being hacked into. Tracking: We’d like...

Be Carefull While Uploading A file To Server Using PHP
With PHP, it is easy to upload files to the server. However, with ease comes danger, so always be careful when allowing file uploads. 1. Configure The "php.ini" File: First, ensure that PHP is configured...

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

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