PHP vs JavaScript: An In-Depth Comparison of the Two Scripting Languages

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 30

  • @ronarmengol1677
    @ronarmengol1677 2 роки тому +13

    I use both. Javascript to manipulate the DOM for event listeners, animations, toggling and client-side validation. PHP for database manipulation, back-end logic, server-side validation and conditions in HTML.

  • @Stoney_Eagle
    @Stoney_Eagle 2 роки тому +18

    I work with both but I love working with PHP.
    It's easier to do the same thing, because you don't have to deal with the event loop of Javascript.

    • @levdev5659
      @levdev5659 2 роки тому

      Python is better

    • @Louisianish
      @Louisianish 2 роки тому +7

      @@levdev5659 In what ways is Python better, in your opinion? It definitely excels in data science and machine learning, but JavaScript and PHP excel in web development. They each have their strong suits and each excels at a particular task more than the others.

    • @tonyata7006
      @tonyata7006 2 роки тому

      @@levdev5659 Python is suck

    • @devdude7607
      @devdude7607 Рік тому +4

      @@Louisianish Kid just wanted to be heard.

  • @alexpfernandes
    @alexpfernandes 8 місяців тому

    What an incredible video. I started to learn how to code not long ago with JS, but I was undecided between PHP or Python as a second language. This video helped me a lot. Thanks and keep up the good work!

  • @blbezcc
    @blbezcc 2 роки тому +2

    And which language do you think is better to learn first?

  • @BM-_
    @BM-_ Рік тому

    Wow! amazing job at explaining both! I am currently learning JS and PHP. But I’m not sure if I should stick to one or continue learning both at the same time? Thoughts?

  • @NedumEze
    @NedumEze 2 роки тому

    Magnificent. First time am seeing this. Kudos Bro.

  • @vanngontruong9792
    @vanngontruong9792 3 роки тому

    The video sound is pretty good, beyond my imagination

  • @zakhariihusar6975
    @zakhariihusar6975 2 роки тому

    If js is interpreted language, does it mean that Typescript has to be first compiled to js and then interpreted anyway? So in this case compiled language isn't really faster than interpreted (I don't really consider TS a language, rather an extension, but i think it is)?

    • @JeyPeyy
      @JeyPeyy Рік тому

      Sometimes, the term "transpiled language" is used to denote languages that are "compiled" to another language which will alter be interpreted or compiled. The term "compiled language" will be understood as a language that compiles to machine code by most programmers IMO.

    • @MightyKingKala
      @MightyKingKala Рік тому

      yes you are right typescript has to be compiled

  • @SXsoft99
    @SXsoft99 2 роки тому

    the difference between compiled and non compiled languages are in a lot of cases negligible, depending on how your server is setup, for example for php add redis, opcache, you can even compile to c++ code
    Alaso to be honest i cound the documentation for js and php a lot cleaner compared to c#, java etc
    As a TIP for PHP devs "USE Nginx instead of apache"

  • @navdeepsingh8312
    @navdeepsingh8312 2 роки тому +2

    Thank u so much
    Can we use free database in our web app.

  • @stachowi
    @stachowi Рік тому

    This was a very well done video... thank you.

  • @akin242002
    @akin242002 2 роки тому

    PHP versions 1-6 < Javascript < PHP versions 7-8 < Typescript.

    • @Michael-tm9ke
      @Michael-tm9ke 2 роки тому +2

      The is no version or superset of javascript that can even go on parr with PHP

    • @ronald418
      @ronald418 Рік тому

      Oranges > appples

    • @cmohanc
      @cmohanc Рік тому

      Don't confuse!😅

  • @sristhf3166
    @sristhf3166 Рік тому

    That's Really Helped Me

  • @keivansf3459
    @keivansf3459 2 роки тому

    Amazing, Thanks for the insight

  • @Syria..
    @Syria.. 2 роки тому +1

    Good searched information

  • @seokamela
    @seokamela 2 роки тому

    Well explained content thank you very much

  • @cmohanc
    @cmohanc Рік тому

    Loves your explanation. Great !

  • @jonathanfraga3771
    @jonathanfraga3771 2 роки тому

    Thank you

  • @MightyKingKala
    @MightyKingKala Рік тому

    amazing video

  • @Lyrik-Klinge
    @Lyrik-Klinge 3 роки тому

    Respect!