DEV Community

Discussion on: Feedback on personal website

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Thank you! Where did I say it was a programming language? And why the hate for HTML? That poor thing never did anything wrong to anybody :P

Collapse
 
jpestana profile image
jpestana

In your CV!
Ops, I don't hate HTML... But it is not a programming language

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro • Edited

But it is a programming language. Do people program with it? Yes. Is it a language? Yes. Then it is a programming language 😊

Thread Thread
 
jpestana profile image
jpestana

You are wrong. It is a language but not a programming language because does not contain programming logic.
Sorry 😐

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro

Agree to disagree 😊

Thread Thread
 
jpestana profile image
jpestana

It wasn't an opinion but a fact. You can ignore it if you want, but still being true.

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro • Edited

I'm not saying it's true or false. You are providing a definition of what a programming language is, and I agree that, within that definition, HTML is not a programming language. Then I am providing a different definition of what a programming language is which would include HTML, and you disagree with it. And that's Ok. Other people will disagree with both of us and say that Turing-completeness is what really defines a programming language. Others will say that programming languages can be Turing-complete or not. You say your definition of a programming language is the correct one (opinion), I say I find it too restrictive (opinion). We can agree to disagree.

Collapse
 
omarfarooq profile image
Mohammad Omar Farooq Khan

It is not a programming language because it contains no logic

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro

Define logic.

Thread Thread
 
omarfarooq profile image
Mohammad Omar Farooq Khan

logic is a sensible reason or way of thinking

Javascript or PHP is a programming language because you can use variables, conditions, loops etc. HTML is not a programming language because you have write tags and can't use variables or conditions. HTML stands for Hyper Text Markup Language. So, HTML is a Markup Language not a Programming Language

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro
  1. That is the dictionary definition of "logic", and not the definition of programming logic.
  2. A mark-up language can be a programming language. They are not mutually exclusive concepts.
  3. HTML has control structures that allow the conditional display of elements (e.g. open in details or dialog) and transitions between pages/states without needing external languages like JS or CSS.
  4. HTML is not Turing complete, but it is enough to create models of computation such as finite-state automata.
Thread Thread
 
alvaromontoro profile image
Alvaro Montoro

It all boils down to what the definition of a programming language is. If we take Turing-completeness as the sole criterion then HTML is not a programming language. But the selection of that criterion is subjective in itself. Not all programming languages are Turing complete. A Turing machine is a mathematical model and not a definition for a programming language.