Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. memes
  3. None of these

None of these

Scheduled Pinned Locked Moved memes
memes
97 Posts 68 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S [email protected]

    How is Hyper Text Markup Language not a programming language? Now JavaScript and CSS are arcane rituals, but html is well behaved.

    M This user is from outside of this forum
    M This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #35

    Can you write a program in HTML?

    1 Reply Last reply
    3
    • L [email protected]

      That's the etymological fallacy. The name itself doesn't determine the meaning. According to that logic, python isn't a programming language either but a snake

      V This user is from outside of this forum
      V This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #36

      Fun fact python was named after Monty python, not the snake.

      J _ 2 Replies Last reply
      8
      • venus_ziegenfalle@feddit.orgV [email protected]

        The name itself doesn't determine the meaning.

        The name in this case is defined by the meaning if you will. Programming languages are used to write programs. A HTML file is much closer to a PDF than to what can be considered a program.

        Also fun fact python is named after the comedy group Monty Python rather than the snake.

        M This user is from outside of this forum
        M This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #37

        Actually, PDF is a turing complete programming language.

        PDF is a simplification and wrapper around the computer language PostScript - a PostScript or PDF doc literally runs on the printer or computer and outputs the rasterisation of the thing you want to print.

        PostScript is language based around a stack. You can define functions (which may be fully recursive) that run on the stack.

        Here's a small example:

        /ANGLE {
           newpath
           100 0 moveto
           0 0 lineto
           100 50 lineto
           stroke
        } def
        
        10 setlinewidth
        0 setlinejoin
        100 200 translate
        ANGLE
        
        1 setlinejoin
        0 70 translate
        ANGLE
        
        2 setlinejoin
        0 70 translate
        ANGLE
        

        As such, PDF that's actually similar to Python, and HTML is closer to something like a JSON or XML document.

        Note however that HTML can contain Javscript or WASM programs, but these are embedded rather than features of HTML.

        venus_ziegenfalle@feddit.orgV S 2 Replies Last reply
        8
        • S [email protected]

          How is Hyper Text Markup Language not a programming language? Now JavaScript and CSS are arcane rituals, but html is well behaved.

          S This user is from outside of this forum
          S This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #38

          It is in the name. It is a markup language, not a programming/scripting language.

          1 Reply Last reply
          2
          • M [email protected]

            Actually, PDF is a turing complete programming language.

            PDF is a simplification and wrapper around the computer language PostScript - a PostScript or PDF doc literally runs on the printer or computer and outputs the rasterisation of the thing you want to print.

            PostScript is language based around a stack. You can define functions (which may be fully recursive) that run on the stack.

            Here's a small example:

            /ANGLE {
               newpath
               100 0 moveto
               0 0 lineto
               100 50 lineto
               stroke
            } def
            
            10 setlinewidth
            0 setlinejoin
            100 200 translate
            ANGLE
            
            1 setlinejoin
            0 70 translate
            ANGLE
            
            2 setlinejoin
            0 70 translate
            ANGLE
            

            As such, PDF that's actually similar to Python, and HTML is closer to something like a JSON or XML document.

            Note however that HTML can contain Javscript or WASM programs, but these are embedded rather than features of HTML.

            venus_ziegenfalle@feddit.orgV This user is from outside of this forum
            venus_ziegenfalle@feddit.orgV This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #39

            Consider me outjerked 🎩🤏

            1 Reply Last reply
            7
            • L [email protected]

              There is a running joke that some people falsely consider HTML a programming language which it is not. So it's D. I didn't watch the show but I assume that's it and the joke is that the audience's majority took alien language

              M This user is from outside of this forum
              M This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #40

              Interestingly C and D are both programming languages. That is, there is a programming languages called C and another, D.

              I'll see myself out...

              J M U 3 Replies Last reply
              2
              • kolanaki@pawb.socialK [email protected]

                What about Excel? First reply I got said it has to make programs, right? I can make a Tetris clone in Excel. 🤣

                B This user is from outside of this forum
                B This user is from outside of this forum
                [email protected]
                wrote on last edited by [email protected]
                #41

                Well, you can't make Tetris in HTML without including some other language that has loops and variables.

                I'm also not sure if you can do it in Excel without using VBA, which is a programming language. Excel doesn't do circular logic in the document sheets.

                Anyway the issue or joke is the lack of definition of "programming".

                HTML is a text encoding system. It's not that different form something like the Morse code. It's only instructions for how to decipher a series of codes. It takes input and presents it as an output, starting from the beginning and working its way to the end.

                In my very unofficial opinion, a "program" is something that is able to "run" by itself, so that the code itself has instructions for which part of the code to run.

                If you decipher a morse code, it doesn't suddenly have instructions that force you to go backwards in the code and decipher from there or to jump to different sections. The text output might tell you to do so, but if you follow the text, then you're doing something else than deciphering morse code.

                HTML works the same. It start from the top and interprets its way down. It can have some conditional statements, but nothing that will make it go backwards and rerun the same instructions again.

                The interpretation is of course more advanced than Morse code and it can call other languages to do stuff, so HTML is basically a document describing a job procedure in that way. The individual jobs can be reoccurring tasks, but the document itself isn't.

                So in my opinion it's not "running" anything. It's just a document being printed on screen.

                I'll admit that "one-shot" programs are a thing, and documents with variables do exist, so it's not clear cut. A programming language should be capable of those things though, and HTML isn't one on its own.

                F 1 Reply Last reply
                1
                • G [email protected]

                  It’s right there in the name: it’s a markup language. Hyper Text Markup Language. HTML.

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #42

                  How To Meet Ladies.

                  L 1 Reply Last reply
                  13
                  • kolanaki@pawb.socialK [email protected]

                    What about Excel? First reply I got said it has to make programs, right? I can make a Tetris clone in Excel. 🤣

                    jimmux@programming.devJ This user is from outside of this forum
                    jimmux@programming.devJ This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #43

                    Simon Peyton Jones is about as big an expert on programming languages as you can get, and he's on the record as saying Excel is a functional programming language.

                    1 Reply Last reply
                    0
                    • gutek8134@lemmy.worldG [email protected]

                      Is only A supposed to be a pointer?

                      D This user is from outside of this forum
                      D This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #44

                      Asking the real questions.

                      1 Reply Last reply
                      0
                      • H [email protected]

                        Mine wouldn't.

                        It is a quiz, they know what they are talking about if they put the question in. And if they don't, you get to call out the quiz master for being wrong.

                        J This user is from outside of this forum
                        J This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #45

                        But I’d rather have the million dollars than the satisfaction of calling out the show for being wrong.

                        K F 2 Replies Last reply
                        3
                        • V [email protected]

                          Fun fact python was named after Monty python, not the snake.

                          J This user is from outside of this forum
                          J This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #46

                          What was Monty Python named after?

                          little8lost@lemmy.worldL K I K 4 Replies Last reply
                          4
                          • J [email protected]

                            What was Monty Python named after?

                            little8lost@lemmy.worldL This user is from outside of this forum
                            little8lost@lemmy.worldL This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #47

                            I think it got inspired by our lord and savior Brian

                            1 Reply Last reply
                            0
                            • M [email protected]

                              Interestingly C and D are both programming languages. That is, there is a programming languages called C and another, D.

                              I'll see myself out...

                              J This user is from outside of this forum
                              J This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #48

                              Trying to remember from automata theory, does the empty set accept an empty grammar?

                              Like how in some languages an empty source file is valid? So then “none” is a programming language with an empty language grammar?

                              1 Reply Last reply
                              1
                              • L [email protected]

                                Is Machine Language even a well defined thing? I would think of assembly but I don't know where to draw the line

                                J This user is from outside of this forum
                                J This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #49

                                Hyper Text Machine Language

                                This will be the next big thing. I’m going to write a Lemmy server in this.

                                D 1 Reply Last reply
                                0
                                • D [email protected]

                                  I would loudly go on the record for my reasoning that Hypertext Markup Language is not Turing Complete, and therefore fails to be a programming language by the only academic and theoretical definition that matters.

                                  They already are going to award me "lawyer up" money, so I'll come after them for damages later if B is the "right' answer.

                                  itslilith@lemmy.blahaj.zoneI This user is from outside of this forum
                                  itslilith@lemmy.blahaj.zoneI This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #50

                                  wrong again! CSS is turing complete, and HTML can include inline CSS, so you can implement a Turing machine in HTML only (without external .js files)

                                  N 1 Reply Last reply
                                  2
                                  • T [email protected]

                                    It's right there in the name, but then there's CFML, which is unpopular, but it definitely features logic, variables, and data manipulation.

                                    I This user is from outside of this forum
                                    I This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #51

                                    CFML walks the line, but it exists to make HTML in a programmatic way, and be very approachable to non-programmers. It’s not really a markup language, it’s a programming language disguised as markup.

                                    1 Reply Last reply
                                    0
                                    • J [email protected]

                                      But I’d rather have the million dollars than the satisfaction of calling out the show for being wrong.

                                      K This user is from outside of this forum
                                      K This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #52

                                      Weak sauce. A man has to have principles!

                                      1 Reply Last reply
                                      1
                                      • itslilith@lemmy.blahaj.zoneI [email protected]

                                        wrong again! CSS is turing complete, and HTML can include inline CSS, so you can implement a Turing machine in HTML only (without external .js files)

                                        N This user is from outside of this forum
                                        N This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #53

                                        It can also include inline JS. HTML alone cannot be turing complete, but HTML+CSS is.

                                        Z 1 Reply Last reply
                                        3
                                        • W [email protected]
                                          This post did not contain any content.
                                          F This user is from outside of this forum
                                          F This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #54

                                          Ackshually it's a markup language not a programming language Picks D and loses $1 million

                                          F 1 Reply Last reply
                                          10
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups