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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

ความคิดเห็น • 30

  • @ronarmengol1677
    @ronarmengol1677 2 ปีที่แล้ว +14

    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 3 ปีที่แล้ว +20

    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 10 หลายเดือนก่อน +1

    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!

  • @BM-_
    @BM-_ ปีที่แล้ว +1

    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?

  • @blbezcc
    @blbezcc 3 ปีที่แล้ว +2

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

    • @jyy3338
      @jyy3338 2 ปีที่แล้ว +5

      Php

  • @NedumEze
    @NedumEze 2 ปีที่แล้ว

    Magnificent. First time am seeing this. Kudos Bro.

  • @zakhariihusar6975
    @zakhariihusar6975 2 ปีที่แล้ว +1

    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

  • @stachowi
    @stachowi ปีที่แล้ว

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

  • @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.

  • @sristhf3166
    @sristhf3166 ปีที่แล้ว

    That's Really Helped Me

  • @Syria..
    @Syria.. 2 ปีที่แล้ว +2

    Good searched information

  • @keivansf3459
    @keivansf3459 3 ปีที่แล้ว

    Amazing, Thanks for the insight

  • @seokamela
    @seokamela 2 ปีที่แล้ว

    Well explained content thank you very much

  • @vanngontruong9792
    @vanngontruong9792 3 ปีที่แล้ว

    The video sound is pretty good, beyond my imagination

  • @akin242002
    @akin242002 2 ปีที่แล้ว

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

    • @Michael-tm9ke
      @Michael-tm9ke 2 ปีที่แล้ว +3

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

    • @ronald418
      @ronald418 2 ปีที่แล้ว

      Oranges > appples

    • @cmohanc
      @cmohanc ปีที่แล้ว

      Don't confuse!😅

  • @cmohanc
    @cmohanc ปีที่แล้ว

    Loves your explanation. Great !

  • @MightyKingKala
    @MightyKingKala ปีที่แล้ว

    amazing video

  • @jonathanfraga3771
    @jonathanfraga3771 2 ปีที่แล้ว

    Thank you

  • @Lyrik-Klinge
    @Lyrik-Klinge 3 ปีที่แล้ว

    Respect!