top 50 comments

sorted by: hot top controversial new old
[–] 72 points 2 years ago (2 children)

Markup languages are just declarative programming at its best

  • source
  • hideshow 2 child comments
  • [–] 66 points 2 years ago (30 children)

    For the common folk working with a markup language is programming.

  • source
  • hideshow 30 child comments
  • [–] 39 points 2 years ago (25 children)

    For all intents and purposes, a markup document is a script that outputs a document. There's no point in saying the HTML isn't a programming language. Not all languages have to be general purpose.

  • source
  • parent
  • hideshow 25 child comments
  • [–] 41 points 2 years ago (11 children)

    The bar for me is whether the language describes an executable program that has state and control flow.

    You could perhaps be generous and describe the DOM as a (write-only) state and the parser as a control flow. I don't, personally.

    HTML is just a data container format to me. Belongs with the likes of XML, JSON, JPG, PNG, GIF, MP3, MOV, etc.

    The umbrella term I'd use for all of these is "coding". That's the skill of understanding structured languages and format specifications, and understanding how you can and can't piece things together to make something coherent. This is a critical requisite skill to programming. But programming is more.

    Programming is the art of juggling of state and control flow in clever ways to trick funny rocks into computing something you don't know. It doesn't need to be general purpose, but I would argue it indeed needs to have a purpose. It has to be something more than just a pile of declarations you know from the outset. Otherwise it's just structured data.

  • source
  • parent
  • hideshow 11 child comments
  • [–] 14 points 2 years ago (3 children)

    The umbrella term I'd use for all of these is "coding".

    Saying "it's not programming it's coding" is like engineer "it's not dirt it's soil" levels of pedantry that are silly to expect people outside your profession to know.

    Hey, maybe you are engineers after all lol

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (1 reply)
  • load more comments (7 replies)
  • [–] 16 points 2 years ago* (6 children)

    Not really. If so, you might as well consider the stuff you can use to format a comment here on lemmy, as "programming". That's conceptually more similar to HTML as what programming actually is.

    quote

    some title

    Ooo hyperlink

    Etc.

  • source
  • parent
  • hideshow 6 child comments
  • load more comments (5 replies)
  • load more comments (6 replies)
  • load more comments (1 reply)
    [+] 37 points 2 years ago (8 children)
  • [–] 25 points 2 years ago (7 children)

    But also, you're making a computer do what you want, and something that it wasn't programmed by the factory to display, when you write HTML. You're programming.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 35 points 2 years ago (6 children)

    Under this definition, using mspaint is programming

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 2 years ago* (4 children)

    Fair point. There's a fine line between programming and creating data that a program operates on. I tend to think writing text to produce nontext output is more programming than not.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 2 years ago (3 children)

    There are programming languages that are entirely visual. In fact, I could parse the pixels in a bitmap created by ms paint and make it into programming.

    It's not even that hard. Assign a set of color values to a character in Brainfuck. Iterate through each pixel and do the translation. Throw away color values that don't match. Run the result through the Brainfuck compiler.

    If I'm really crazy, I could implement the instructions directly rather than translating, but translation is easier.

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (3 replies)
  • [–] 34 points 2 years ago (8 children)

    HTML5 + CSS3 is Turing complete, but just basic html is not.

  • source
  • hideshow 8 child comments
  • [–] 8 points 2 years ago (7 children)

    how does something get tested for turing completeness

  • source
  • parent
  • hideshow 7 child comments
  • [–] 11 points 2 years ago (3 children)

    @jackpot @KittyCat implementing a brainfuck interpreter for it is a useful method

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 2 years ago (2 children)

    Just about the only good reason for Brainfuck.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (1 child)

    @frezik I mean that's literally it's purpose. being a minimal turing complete language.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 14 points 2 years ago

    I could be wrong, but I don't think the creators envisioned it being a basis for easily proving the Turing Completeness of other languages, but it did. They were more thinking "how can I have the most fucked up language in the smallest package and still be Turning Complete?"

  • source
  • parent
  • [–] 23 points 2 years ago

    52 down: What you say if you're angry.

  • source
  • [+] 10 points 2 years ago* (last edited 1 year ago)
    [–] 9 points 2 years ago (2 children)
  • load more comments (1 reply)
    [–] 9 points 2 years ago (17 children)

    It’s a markup language. There’s no debugging.

    I don’t have to iterate through versions of the markup to find what works.

    It doesn’t have specific documentation that is mostly the same but differs slightly on different runtimes

    And it doesn’t have IO, dynamic extensibility or modularity….

    Wait a second. Hmm… nah, it’s still just a markup language. Just one derived over time that feels like it was the brainchild of Satan and Cthulu

  • source
  • hideshow 17 child comments
  • [–] 3 points 2 years ago* (11 children)

    I'm not a programmer so I'm tending towards accepting HTML as a programming language, because it's a language you type in to make the computer do stuff. Is there maybe another example of something that does what HTML does but obviously isn't a programming language?

  • source
  • parent
  • hideshow 11 child comments
  • load more comments (1 reply)
  • [–] 6 points 2 years ago

    The correct answer is <?ph

  • source
  • [–] 5 points 2 years ago

    Programmer chuds get bent out of shape that HTML is the single most influential programming language ever made. Think about it, Devs post code snippets to StackOverflow, rendered in HTML. An HTML-interpreter (aka a 'Software Engineer') copy pastes the snippet, transpiles it into a Python file, Java file etc. and later in the process you get a binary.

    Basic Brogrammers rage against programming behemoth HTML out of bitterness that all they are is HTML's compiler.

  • source
  • [–] 5 points 2 years ago

    I think that's just some scrabble players angry at all the non-words

  • source
  • [–] 3 points 2 years ago

    So the creator of this quiz wants to be someone having their life ended forcefully, 8 letters ...

  • source
  • [–] 3 points 2 years ago (1 child)
    load more comments (1 reply)
    load more comments
    view more: next ›