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 at 7:06 PM.

Tags:
?

What you prefer to learn.?

  1. Python

    18 vote(s)
    90.0%
  2. PHP

    2 vote(s)
    10.0%
  1. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    5,007
    Likes Received:
    4,576
    Gender:
    Male
    Occupation:
    Programmer
    Location:
    Pale Blue Dot
    Home Page:
    Again, flawed logic. Python has frameworks like django and flask, which are awesome for building websites pretty quickly; given that you know what you are doing.
     
    • Thanks Thanks x 1
  2. G4143

    G4143 Registered Member

    Joined:
    Jan 16, 2019
    Messages:
    68
    Likes Received:
    28
    Gender:
    Male
    You should learn PHP and JavaScript and HTML and CSS. The bulk of programming is HTML, CSS, and JavaScript.
     
  3. Metatrons Cube

    Metatrons Cube Junior Member

    Joined:
    Feb 9, 2019
    Messages:
    166
    Likes Received:
    49
    Gender:
    Male
    Occupation:
    Transcribing the Fibonacci sequence
    Location:
    Within every particle in the universe
    Want to build sites and don't care about data science (bots, AI, crypto trading, web scraping..): Go PHP, care about one or all of the things in the brackets more than building sites: Go Python.
     
  4. ritipinheiro

    ritipinheiro Newbie

    Joined:
    Jan 1, 2014
    Messages:
    42
    Likes Received:
    7
    In school We started with python, it's really good to automate things and stuff!
     
  5. Sn0bzy

    Sn0bzy Registered Member

    Joined:
    Aug 26, 2017
    Messages:
    55
    Likes Received:
    8
    Gender:
    Male
    Occupation:
    Academician
    Location:
    Turkey
    Home Page:
    Python is really simple and easy programming language. I recommend python.
     
  6. social engineer

    social engineer Regular Member

    Joined:
    Mar 30, 2010
    Messages:
    376
    Likes Received:
    270
    Location:
    UK
    I wouldn't start learning php in 2019 If I were you I'd go the javascript / node route.

    Python's saving grace right now is the ML stuff if it wasn't for ML I'd be avoiding it for projects which required performance.
     
  7. KHer0

    KHer0 Jr. VIP Jr. VIP

    Joined:
    Mar 22, 2011
    Messages:
    1,706
    Likes Received:
    1,595
    Gender:
    Male
    Html, css are not even programming languages. And website programming as a whole is a tiny fraction of programming as a whole

    @OP : You should learn both at least! One for scripting, the other for web developing
     
  8. terrycody

    terrycody Elite Member

    Joined:
    Sep 29, 2012
    Messages:
    2,562
    Likes Received:
    770
    Occupation:
    marketer
    Location:
    Hell
    If you will keep using wordpress in the next 10 years, and still want to do things related with website, web development, then PHP first.

    Python is cool because its simple, easy to learn, and very widely used, but not that well fit for the web development and let alone, wordpress. Python is mainly for versatile usage, web scraping, machine learning, etc.

    Wordpress is what you should consider mostly, because nowadays, people just use wordpress, in any given time, u can develop themes, plugins, codes snippets, fix things of wordpress using PHP is, that is awesome.
     
  9. iamDeLaSoul

    iamDeLaSoul Junior Member

    Joined:
    Jan 28, 2015
    Messages:
    119
    Likes Received:
    60
    Location:
    Europe
    No one mentioned insane performance increase in PHP 7.3 version. Also, it's really hard to avoid PHP if you're trying to be involved in e commerce (Wordpress - Woocommerce, PrestaShop is both written in PHP)

    Python is really great for Data science, analyzing stuff. matplotlib is great. Also, you can build your whole tech stack with web framework like Django. And Python is primary choice to anything AI (Machine Learning, Nature language processing). PHP can do it too. But all of the the good tutors on the internet goes with Python for machine learning stuff. (Mainly TensorFlow, which is also available in JS now)
    Also, it's not that easy to jump in and write a really good pythonic code. Contruary to everyone's "oh Python's so easy to learn!". Yeah, until you have to maintain the codebase and you're fcked with your spaghetti code. Takes time and a lot of learning to write good code.

    So choose the tool for the job and resourses you have. PHP stuff is easier to host, because it's really common thing to do. While Python web app might have a bit longer learning curve. (not hard but still. more research)
     
  10. G4143

    G4143 Registered Member

    Joined:
    Jan 16, 2019
    Messages:
    68
    Likes Received:
    28
    Gender:
    Male
    The practical answer should be: Learn to program first, then start considering which languages.
     
  11. Diplomat

    Diplomat Jr. VIP Jr. VIP

    Joined:
    Oct 25, 2011
    Messages:
    1,226
    Likes Received:
    691
    Home Page:
    Now how would you do that?

    What confuses me is that people are saying that Python is excellent for ML and data mining and scraping. Python can do ANYTHING and more that PHP can do. Python is excellent for such things like ML, etc. because there are tons of libs there, but telling that to a person who is trying to figure out what to learn is a terrible idea. It may scare the person, and then they are missing out a fantastic language, and they get the wrong idea.

    Here's the thing. You should pick a language based on what you are planning to do. If you are working more with PHP based software (Wordpress plugins, etc.), go with PHP. If you want to write all kinds of cool stuff including websites, apps, desktop software, whatever then you can go with Python. Both are awesome languages, but you need to figure out what you want to do and do your research because like 70% of replies are bullshit in this thread.
     
  12. WhereIsMyMoney

    WhereIsMyMoney Newbie

    Joined:
    Apr 7, 2016
    Messages:
    33
    Likes Received:
    13
    @K.H.R Why do you even want to learn? For what reason? There are many languages so why are you choosing between PHP and Python?
     
  13. Better Know

    Better Know Jr. VIP Jr. VIP

    Joined:
    Mar 17, 2018
    Messages:
    258
    Likes Received:
    230
    Home Page:
    PHP if you're suicidal. Python or JS if you're not.
     
  14. WhereIsMyMoney

    WhereIsMyMoney Newbie

    Joined:
    Apr 7, 2016
    Messages:
    33
    Likes Received:
    13
    @Better Know based on what are you giving this advice? We don't even know what the author wants to do.