r/ProgrammerHumor • • Jun 01 '23

Meme HTML is not a programming language

Post image
9.1k Upvotes

500 comments sorted by

View all comments

101

u/Omnislash99999 Jun 01 '23

In my experience people that call HTML a programming language are generally new to coding and learning the basics. I don't see any reason to shoot it down, there are concepts learnt that will crossover.

40

u/meyerdutcht Jun 01 '23

I call it a programming language all the time, and I’ve been programming (never in html!) for 30 years.

-1

u/happy_fluff Jun 01 '23

Why

9

u/meyerdutcht Jun 01 '23

Cause I’ve seen enough weird niche languages that I don’t know of any consistent delineation of “programming” language that makes sense. You can say html doesn’t have control structures, but declarative languages don’t have control structures. You can say it is for markup, but why isn’t that something a computer can be programmed to do? Also, tex is a Turing complete markup language. You can’t declare a variable in HTML, but you can’t exactly “declare” a variable in MIPS either. Isn’t the DOM just a bunch of named structures in memory? Isn’t that a variable? HTML can’t manipulate those by itself, but pure functional languages don’t have mutable memory references either.

It’s a language, it has a grammar. You tell the computer what to do with it. That’s a programming language in the broadest sense. When someone tells me a better (consistent) definition of programming I’m happy to use it.

→ More replies (2)