4
arnavop
1y

HTML is a programming language.

Comments
  • 2
    Not really. It is a layout language that describes the structure of a document. It doesn't have any logic structures that define its behavior at all, such as if/else or loops or the like.

    That doesn't make it any less of a skill to know how it works, it just isn't a *programming* language.
  • 2
    I’d seriously argue the distinction between which code is programming and which is not - is kind of an irrelevant detail. HTML is a computer language that is central to web development.

    You can add elements with JS. You can add an element decleratively with HTML. To separate these approaches and say that ”only one is programming” is irrevelant. - both are coding. Both are web development.

    The fact that HTML is also ”just document markup” is not all that relevant.
  • 2
    Some of u didn’t see the tags lol
  • 0
    @jiraTicket Only one aspect of your example is actually programming, namely the programatic changing of the structure of the document. Editing HTML directly on its own is not programming. It's editing a document. You wouldn't say making changes to a Word doc is programming, would you?
  • 1
    If we include CSS and a user, it’s Turing-complete. Heck, I can even hook it up to a database.

    It’d be an Eldritch horror, but hey.
  • 0
    @Root IndexedDB :)
  • 2
    @shovethisrant wrong tag - hence we take the statement seriously 🫡
    /s
  • 0
    @Demolishun Even though the result is HTML, you are programming in PHP.

    Adding a script tag mean you will be programming in javascript to add/modify HTML. It is declaring to the browser that you want this element to be treated like js, just like a p tag tells the browser you want to display the text like a paragraph.

    The only way editing HTML can be considered programming is if you treat it the same as programming an oldschool machine with a punchcard, but you're programming the browser to do certain things. But at that point, any input at all into a computer is programming.
  • 2
    In general, data is either interpreted - then it's code. Or it's not interpreted - then it's useless.

    Joke or not: HTML is indeed a programming language executed by an HTML parser.
  • 1
    Sometimes I bang objects together and pretend that I’m creating code
  • 1
    yall need to chill...
  • 1
    I taught my kids to smoke crack and now they are contributing to W3C specs - so proud of them 🥰
  • 0
    @cuddlyogre I'm mostly talking about editing html templates, so the general structure. I'd say changing the markup of a single article wouldn't be development but editing the markup of a template is development, if it's part of the core website.
  • 2
    @shovethisrant i saw the tags and I'm fully aware it was intended as a joke but wanted to take it a step further.
  • 0
    @jiraTicket I don't disagree with you that it is development. But it isn't programming. It's editing a document. Programming is one part of development.

    If programming is "providing any input to change the behavior of a computer", then moving the mouse is programming.

    It always feels like there are hurt feelings when it is suggested that HTML isn't a *programming* language, which is baffling to me.
  • 0
    @cuddlyogre if it’s a single document I agree

    But I’m thinking of editing html in a template engine. Such as the base html template for the entire site. I wouldn’t call that just a document or liken it to mouse movement input.

    I’d be fine if people talk about application coding.

    What baffles me is just when devs seem to argue code is either real programming or other - and the other category is put in the same bracket as moving a mouse or editing a word doc
  • 0
    An argument from computerphile https://youtu.be/4A2mWqLUpzw/...
  • 0
    And it’s not that I’m personally just writing html and feeling butthurt that my craft isn’t called programming.

    It’s just that I’ve heard juniors write html tags programmatically in a weird way saying stuff along the lines of ”feels good to code like a real dev, unlike the html templates i used earlier. Html isn’t programming lol” while not realising there’s no significant difference

    I just felt like the ”it isn’t programming” is so binary and goes to people’s heads
  • 0
    @jiraTicket If it’s a templating engine like Liquid or erb, it’s not html anymore. It’s that templating language with html output.
  • 0
    @Demolishun They stopped putting me in front of clients a long time ago because I am that specific about this kind of thing. I have dedicated the last ~25 years to this and I'm not about to let people's feelings, especially the feelings of people outside of the industry, redefine my craft.
  • 0
    Watch the episode of computerphile regarding html
Add Comment