this post was submitted on 26 Jul 2024
278 points (95.4% liked)

Programmer Humor

32396 readers
1822 users here now

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

Rules:

founded 5 years ago
MODERATORS
278
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
[–] mindbleach 5 points 3 months ago (2 children)

You can't write a program in HTML.

End of discussion.

[–] [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

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.

[–] mindbleach 2 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] 0 points 3 months ago

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