What to Learn PHP or Python..?

What you prefer to learn.?

  • Python

    Votes: 69 75.0%
  • PHP

    Votes: 23 25.0%

  • Total voters
    92
Go with PHP - learn it hard then you can switch to Python. PHP is more organised imo for beginner. Give PHP some time then python will be nothing. Both are good.
 
Start with general-purpose modern popular languages Python and JavaScript. Python is the easiest one to get started.
For IM learn PHP.
If you want to make money from developing as a freelancer learn new trendy languages and frameworks. They change all the time.
 
It depends what you want to achieve. PHP is mainly used for web development so if you want to do freelance work for web development projects like creating Wordpress plugins, ecommerce sites etc, then PHP would suit you better. However, if you want to do things like deep learning or data related, then Python will be more suitable. You are probably not going to find many deeping learning freelance jobs though. Python can be used for web development as well but if you work with existing software like Wordpress, Magenta, then you will need to use PHP. Before you choose a language, you should ask yourself why do you want to learn coding.
 
Ask yourself this question: What do you really want to achieve?
-freelancing/web dev/tinkering with Wordpress/Wordpress plugin dev... PHP is for you.
-wanna play with the data/scraping/deep learning... Python is the way to go.

Both are great languages. If you learn PHP first, Python will be very easy for you after that.
 
Both PHP and Python are good languages and easy to learn (compared to C++ and others). However, python has great future and has more scope than PHP.
 
Python is Jack of All Trades, Master of none, it's a generalist but it shines at nothing in particular. People claim that it is good for data science but trust me, it's not, Pandas and Numpy are just syntax sugar, it's not special neither impressible (and the performance is meh).
 
For jobs sense, learn PHP. Go to the service section in this forum and see which programming language most freelancers are using. It's PHP. It's WordPress. And most major CMS are built on PHP. Python is a great language. But there is more jobs for Freelancers in PHP.
 
Because it used to suck because it was slow and has quite inconsistent style and it can produce some really nice cryptic error messages.
These days, it's still quite inconsistent, but with PHP 7 it's not slow anymore. It's no C or C++, but it is a lot faster and efficient than before. So most new programmers just read old rant and think PHP sucks.

It used to suck in the php 4 - 5.3 days. It's incredibly stable now and it is built on a relatively solid foundation. It still has its flaws but these are more superficial than fundamental. We get "1st class citizen" Class support, native namespaces, acceptable support for types, etc. The syntax can be a bit noisy, that's true. It's biggest flaw, however, is that's limited to servers only.

A horrible language, on the other hand, with huge fundamental flaws is the Frankenstein that's called JavaScript. It's just too dynamic and its class/object support sucks balls, it has no type support at all!! This language has grown to be an absolute monster and using compilers is an absolute pain in the ass, and even then class and type support is extremely poor and inconsistent. Not to mention its ugly and again inestable namespace system not to mention the Dom. Its unoficial package manager can be useul but it can grow out of control and become a dependency hell. I just finished a JavaScript project. The development code base is 600mb + with dozens of thousands of files, while the compiled script is 300kb+-. 1.5GB avg Ram for the development server. What the heck! JavaScript is a total clusterfuck that sooner or later you'll have to learn. I use JS everyday, make money off it but I really wish it didn't exist.
 
Last edited:
Python is Jack of All Trades, Master of none, it's a generalist but it shines at nothing in particular. People claim that it is good for data science but trust me, it's not, Pandas and Numpy are just syntax sugar, it's not special neither impressible (and the performance is meh).
Compared to what, FANN? PHP is great for what it does, and Python, the same... as for either not being good for DS, especially bigger datasets... its probably your DB, not the programming language parsing output that is your bottleneck.
 
It all depends on your goal.

Python is very good do quickly throw a prototype together and get it working within a few hours, to test out a concept of what you are doing. It is also a great learning (first) language.
Php is great, if you are going to do web stuff. It is supported on almost every cheap web host and is very well accepted in the web dev world.

I myself am currently working on a project involving php frontend, which then sends commands to multiple python workers in the background. Nice stuff. So go for both.
 
Hi,

It depends what you want to do with, and where are you located: according to Google Trends (https://trends.google.com/trends/explore?q=/m/060kv,/m/05z1_), Python is more popular (but I think it's mainly because people still write "python" when looking for information, when people using PHP will write Laravel or Yii... But then you can still see: In Ukraine for example, even with this, PHP is more popular.

Check this as well, as they are the two main framework for each language: https://trends.google.com/trends/explore?date=today 5-y&q=Laravel,/m/06y_qx
 
Compared to what, FANN? PHP is great for what it does, and Python, the same... as for either not being good for DS, especially bigger datasets... its probably your DB, not the programming language parsing output that is your bottleneck.

PHP is aimed for web, so it's easy to jump and create a site using PHP. While for Python, it requires Django or Flask, so the community starts separated in two, it also requires to know python + framework (so it increases the learning curve in comparison with PHP). Also, Python is considerably slower than PHP, so while the DB is usually a bottleneck but it also impacts the language.
 
Python is better in the long-term projects. PHP has a very low learning curve, and it is straightforward to get started with. Python uses indentation enforcement that is quite strict. This makes it more readable than PHP.
 
Back
Top