r/ProgrammerHumor • • Jun 01 '23

Meme HTML is not a programming language

Post image
9.1k Upvotes

500 comments sorted by

View all comments

Show parent comment

5

u/Acceptable-Tomato392 Jun 01 '23

I think most people will use the word "computation" as part of their definition of programming. The problem with using just HTML and CSS is you're rendering something static.

It also all depends what you do with it. Take the following for example:

<html>Hello World.</html>

<html><div id="displayer"></div><script>document.getElementById("displayer").innerHTML="<p>Hello World.</p>"</script></html>

These things both do the same thing. And I admit this is where lines get blurred. Is the second one a program and not the first? Why? Just because Javascript is a programming language and HTML is not? Both make generous use of the browser's innate capabilities.

However, I could write a slightly more complicated script that goes through an array of messages and alternates them every 3 seconds. Now most people wouldn't have a problem calling that a program. And this is precisely what naked HTML can't do.

-3

u/[deleted] Jun 01 '23

Like, math computation? CSS have those, though

And, many programs which just just define behaviour, without some calculations are still programs

You can also write dynamic page with html + css only

My point is - spectre of existing programming tools is very high (imagine how high spectre on not yet existing) and making such strict definition and defend them is lack of understanding (even more, people who criticise "html is programming language" can't tell any drfinition of "programming language")

I name as html as programming language , because it is language used for programming

And I can say "I program this in JS and HTML" instead of "I program this in JS and markup in HTML"