1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

What to Learn PHP or Python..?

Discussion in 'Programming' started by K.H.R, Apr 15, 2019.

Tags:
?

What you prefer to learn.?

  1. Python

    53 vote(s)
    79.1%
  2. PHP

    14 vote(s)
    20.9%
  1. Automationdaddy

    Automationdaddy Jr. VIP Jr. VIP

    Joined:
    Jan 2, 2014
    Messages:
    836
    Likes Received:
    171
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Earth
    Home Page:
    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.
     
  2. Agilex85

    Agilex85 Newbie

    Joined:
    Jun 5, 2019
    Messages:
    22
    Likes Received:
    5
    Gender:
    Male
    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.
     
  3. MasterA1

    MasterA1 Newbie

    Joined:
    May 31, 2019
    Messages:
    45
    Likes Received:
    5
    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.
     
  4. kukno

    kukno Newbie

    Joined:
    Nov 2, 2016
    Messages:
    23
    Likes Received:
    2
    Gender:
    Male
    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.
     
  5. Ridew

    Ridew Newbie

    Joined:
    Jan 17, 2019
    Messages:
    29
    Likes Received:
    8
    Gender:
    Male
    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.
     
  6. terrier2018

    terrier2018 Junior Member

    Joined:
    Jul 21, 2018
    Messages:
    106
    Likes Received:
    35
    Gender:
    Male
    Occupation:
    Entrepreneur
    Location:
    Chile
    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).
     
  7. virtualman89

    virtualman89 Jr. VIP Jr. VIP

    Joined:
    Jan 25, 2019
    Messages:
    135
    Likes Received:
    54
    Gender:
    Male
    Home Page:
    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.
     
  8. rafark

    rafark Jr. VIP Jr. VIP

    Joined:
    Jan 15, 2013
    Messages:
    785
    Likes Received:
    486
    Gender:
    Male
    Occupation:
    Moderador
    Location:
    North America
    Home Page:
    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.
     
    • Thanks Thanks x 1
    Last edited: Jun 21, 2019
  9. timothywcrane

    timothywcrane Power Member

    Joined:
    Apr 25, 2009
    Messages:
    694
    Likes Received:
    298
    Occupation:
    Internet Promotion Management
    Location:
    USA
    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.
     
    • Thanks Thanks x 1
  10. Renfield-Files

    Renfield-Files Regular Member

    Joined:
    Feb 13, 2017
    Messages:
    411
    Likes Received:
    194
    Gender:
    Male
    Occupation:
    IT Manager
    Location:
    Sao Paulo
    Both! PHP first...
     
  11. akaCube

    akaCube Newbie

    Joined:
    Apr 19, 2017
    Messages:
    12
    Likes Received:
    2
    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.
     
  12. BabylonTraffic

    BabylonTraffic Jr. VIP Jr. VIP

    Joined:
    Nov 27, 2015
    Messages:
    104
    Likes Received:
    19
    Home Page:
    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
     
  13. terrier2018

    terrier2018 Junior Member

    Joined:
    Jul 21, 2018
    Messages:
    106
    Likes Received:
    35
    Gender:
    Male
    Occupation:
    Entrepreneur
    Location:
    Chile
    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.