43
submitted 3 months ago* (last edited 3 months ago) by mox@lemmy.sdf.org to c/programming@programming.dev

Direct link to the table, for those who block off-site scripts:

https://flo.uri.sh/visualisation/19114866/embed?auto=1

Some of the labels don't seem to show up unless you zoom out.

you are viewing a single comment's thread
view the rest of the comments
[-] mox@lemmy.sdf.org 4 points 3 months ago

It’s a markup language(ish) but it’s not a programming language. XML would be closer to programming, IMHO, since you could have simple things like recursion.

One could also view it a different way:

XML merely provides abstract structure. It doesn't direct that anything be done. By itself, it doesn't program anything.

HTML, on the other hand, directs web layout engines to produce outputs. It programs them.

SQL is in the same category for me.

SQL directs databases to manipulate data and relations, and to produce results. It programs them.

Imperative and functional programming are often what come to mind first, at least for many of us, but declarative programming is nevertheless programming.

[-] TehPers@beehaw.org 4 points 3 months ago* (last edited 3 months ago)

Pushing HTML even further, one could say it's a declarative programming language that programs a UI in a mostly-stateless manner (inputs aren't really stateless but you can argue the state is provided by the UI rather than managed by HTML).

I'm not sure I'd make this leap myself though, I have a hard time classifying it (or any other markup language) as a PL. As far as I am aware, you can't really program a state machine with pure HTML, though you can accept inputs and return outputs at least.

this post was submitted on 24 Aug 2024
43 points (97.8% liked)

Programming

17314 readers
542 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS