4

Today i saw a discussion in some facebook comments if js/php are programming languages. What do you mean? Would you describe these as a programming language? Any why?

Comments
  • 2
    PHP is 100% one, JS is at least one too. But CSS and HTML are no programming languages!!
  • 1
    It depends on how you would define a Programming language.
    I'd say they are kind of like script languages.
  • 5
    @neonoxd can you describe what is a script language? I do python, Java, golang, PHP and occasionally js. And all of them are programming languages, some compiled, some interpreted. Each as its set of strenghts and weaknesses. Usually, if I say I need to write some script, it is implied I'm using shell scripting and will be performing some automation task. And even so, shell is a programming language (although of severely restricted functionality). Both js and PHP grew a lot in terms of functionality as of late, and you can pretty much do whatever you want in it (not that I would recommend it, as described above, strenghts...). But neither is a "scripting" language (unless you meant interpreted, then you can put python, ruby and whichever other in the same stack) :)
  • 0
    @bolovsky i meant Interpreted languages. :D
  • 3
    @neonoxd well, then sir, I should tell you, you almost started a flame war :P
  • 0
    @bolovsky Wasn't my Intention :D and I love python so wouldn't say any is worse than the other just because one is compiled. It's just a personal "wording" :D
  • 1
    Both JS and PHP are Turing complete. Not that it's a great measure but just saying.
  • 0
    @neonoxd interpreted languages are actually compiled too right before they run.
  • 0
    @setyadi but you get what I mean :D
  • 1
    @moagggi actually, CSS3 + HTML5 is Turing complete. But CSS and HTML are no programming languages on their own.
  • 0
    They definitelly are.
Add Comment