this post was submitted on 26 Jul 2024
280 points (95.5% liked)

Programmer Humor

32481 readers
230 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
280
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

What does your sleep paralysis demon ask you?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 3 months ago (2 children)

You can't write a program in HTML.

End of discussion.

[–] [email protected] 0 points 3 months ago

I mean technically I could write an interpreter that assigns semantics to HTML constructs.

[–] [email protected] 2 points 3 months ago (2 children)

programing languages arent use to make programs they are used to program machines which is exactly what u do with html.

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago)

they are used to program machines

Which HTML cannot do, because if it could, that would be called a program. That's what the word means.

HTML makes documents. It's a markup language. It's not even Turing-complete accidentally.

[–] [email protected] 3 points 3 months ago

The "program" is the package of instructions that tell the machine what to do. The instructions are written in a programming language.

With a markup language, the markup is the input to a program (like a browser) that tells the machine what to do.

But I think it's not really boolean, it's a sliding scale. Especially with so many programming languages being interpreted or JIT compiled. I think it's less a programming language than many other programming-related things, but more of a programming language than, say, a slideshow.