iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 24
0
Modern Web

用30days 了解web系列 第 24

(Day 24) python vs php for web development

  • 分享至 

  • xImage
  •  

Are you new in Web development? Or do you need help in making a choice between PHP and Python? No need to worry! I have made it easy for you. In this article, all the information that you need to be well versed will be provided. By the time you finish reading this article, you will understand why who is the winner in Python vs PHP war.

Popularity
If popularity is all you care, then PHP is the clear winner. PHP has a market share of 58.3% while Python only has 1.2%. The difference is so vast! However, a bigger market share does not necessarily mean that PHP is a better option for Web development!
https://ithelp.ithome.com.tw/upload/images/20201007/20129609eXu2wd4UtU.png

Below are some advantages of Python:
Python is a general-purpose programing language that can be learned with ease by everyone. That’s why you can find a lot of programming courses for beginners using this programming language;

  • Python is very famous for its readability and for being easy to understand;
  • Python codes are short compared to most programming languages and can be written easily as compared to other languages and therefore has become a favorite choice for many applications and websites;
  • With Python, minor mistakes generally don’t break the whole program as Python is very tolerant of mistakes in formatting.

On the other side, PHP has a lot of drawbacks:

  • PHP is famous for being difficult and not very friendly with new users. The rules are much tough;
  • PHP has a reputation for ugly syntax (this I totally agree);
  • PHP was not designed to be a general-purpose language rather it was designed for sophisticated web applications and not for simple, stand-alone programs;

In conclusion, there are a lot of things to say about these two but I will definitely recommend Python.


上一篇
(day 23) Technologies That Will Transform Web Development
下一篇
(Day 25) Docker vs Virtual Machine
系列文
用30days 了解web30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言