Python Forum
Readability in Python and PHP - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Readability in Python and PHP (/thread-37976.html)



Readability in Python and PHP - ankitdixit - Aug-17-2022

Hello All, I am working on a python project and I have 2+ years of experience in PHP. I want to know which programming language readability is more easy between python and php. I have asked this question on quora and according to this source, PHP is a classic programming language that mainly relies on documentation and follows a set of conventions. As a result, it’s more difficult to read than Python. Can anyone tell me, about python?


RE: Readability in Python and PHP - Larz60+ - Aug-17-2022

The blog that you refer to in your link appears to be unbiased at the start, but then becomes very biased toward PHP.
perhaps this review is more fair: https://hackr.io/blog/python-vs-php

I was a 'C' and 'C++' programmer for almost 30 years prior to changing almost exclusively to Python. There was really only one reason why I did this, and that was the availability of packages for almost anything I could think of.

Example: 36 projects for ""traffic light"", 568 projects for ""barcode"" ( https://pypi.org/ )

As far as readability is concerned, that's sort of programmer controlled. Well formatted code with sensible object naming is very easy to read. Spaghetti code in any language is next to impossible to read.