3 ms·
Considering HTML a programming language, and not knowing the relationship between Arduino and C++, would seem to call into question the validity of their conclu
by kragen 7y ago
Considering HTML a programming language, and not knowing the relationship between Arduino and C++, would seem to call into question the validity of their conclusions. If you're going to include HTML, you should include CSV, JPEG, Word, and URLs too.
Also, why are bash and Excel missing? They're clearly programming languages in precisely the way HTML is not, and they're clearly a lot more popular than some of the items on the list.
- capableweb 7y agoEverything with including HTML in this report does indeed seem weird. Especially since they group HTML together with CSS and has the following as the definition of the two: > HTML is a specialized language for describing the appearance and content of web pages, often extended using CSS Hard to take the rest of the report seriously when they don't seem to know what they are talking about. Also, the title of the report should probably replace "Top" with "Most Popular" as they seem to go by usage, not necessarily the "best" language (which I would have thought with the usage of "top") Cuda and Lisp being listed as programming languages also further indicates the authors are missing something.
- kragen 7y agoDo you think it's bad to be weird? It's weird to tell the truth, too, or to keep your word. My complaint about the report is not that it's a weird report; on the contrary, its profoundly poor scholarship is depressingly typical of discussions on the topic. (If you think it's bad to be weird, what are you doing on Hacker News?) The description of HTML you quote seems fairly correct. Lisp is definitely a programming language (though, like most, it has a variety of dialects with varying degrees of compatibility). CUDA is more debatable; to me it seems like a different programming language, but CUDA programmers tell me it's just C (or C++). But until 2010, it didn't even support recursion, which seems to me like a pretty basic feature of C. Maybe in 2019 the position that CUDA is a separate language is less reasonable than it was in 2009.
- capableweb 7y agoI was using "weird" here as in if they are trying to stay factual, that seems like the wrong way to go about it. A discussion about if I/you think "being weird" is bad does not belong here. As far as I know, HTML is not extended by CSS but rather complemented by it. HTML for structure and CSS for styling. Also as far as I know, Lisp is a family of languages, usually Common Lisp, Emacs Lisp, Clojure, Racket, Arc and others. Lisp (the language, not the family) died out and was replaced by others, so saying Lisp nowadays would refer to the family, not the language(s) (LISP 1 & 2)
- kragen 7y agoYou seem to be using "weird" as a synonym for "wrong"; that's what I was objecting to. That kind of aggressive conformism seems entirely out of place† to me on a discussion forum for hackers, who are in their essence not conformist. You might want to think about conforming to the nonconformism ;) † "Out of place" is a fairly precise synonym for "weird".
- a1369209993 7y agoHow about: > Everything with including HTML in this report does indeed seem [out of place in a report that is trying to stay factual]. ?
- kragen 7y agoI didn't mean it was a better synonym ;)
- sgillen 7y agoThey do at least address this: > Below the top 10, some items of note include Arduino at No. 11 and HTML/CSS at No. 12. In previous years, some readers have complained that neither should appear on a list of programming languages. In the case of Arduino, the argument is that there is no such language, that “Arduino” is actually the name of the family of hardware platforms on which the language runs, and that this language should be called Wiring (or sometimes C or C++ for historical reasons). In this, we are led by simple pragmatism: When faced with a programming question, the overwhelming majority of Arduino developers search Google using terms like “Arduino Code for…,” rather than any alternative. By choosing the de facto name, we avoid deeply discounting the popularity of programs written for the Arduino and similar microcontrollers. >Pragmatism is also the name of the game when it comes to HTML, with the objection here that it is not a real programming language because it doesn’t have branching or loop constructs. But given the huge popularity of HTML and CSS among developers, and the fact that they are used to instruct billions of computers to do things daily, we feel any academic arguments about Turing completeness and so on are beside the point. A markup language is still a language.
- kragen 7y agoYes, those are the incorrect arguments I was responding to. (The relationship between Arduino and C++ is not historical.) Thank you for taking the time to quote them!
- deleted 7y ago[deleted]
- open-source-ux 7y ago"Considering HTML a programming language..." Computerphile (popular computing channel on YouTube) made a video on whether HTML is a programming language or not. The professor in the video ((David Brailsford) argues yes (a restrictive declarative language). The commenters mostly disagree: HTML IS a Programming Language (Imperative vs Declarative): https://www.youtube.com/watch?v=4A2mWqLUpzw https://www.youtube.com/watch?v=4A2mWqLUpzw
- kragen 7y agoThanks for the link!
- coldtea 7y ago>Considering HTML a programming language People don't care for semantics. If you write it and it causes a PC to do something (even if it's just to show a website), it's a programming language. Doesn't need to have branching, variables, etc... (not to mention that HTML includes JS and CSS) print "hello world", <b>hello world</b>, same difference.
- kragen 7y agoIt's important to care for semantics in order to have a conversation that conveys information, which is necessary for having culture, so I will continue the semantics discussion you have started. Your proposed definition of programming languages includes, as I said, CSV, JPEG, Word, and URLs. Does that mean that anyone who snaps a photo on Instagram is a programmer? This does not seem to be in accordance with the usual meaning of the word "programmer". Is it "programming" to write a dunning letter in Word? It seems to me like a qualitatively different activity. Programming languages are all more or less equivalent; although they have a variety of paradigms, and although they are supplied with a variety of I/O facilities, you can program more or less precisely the same set of computations in all of them. Consider the differences between C, Forth, Smalltalk, Prolog, Fractran, Lisp, Brainfuck, Haskell, VHDL, amd64 machine code, and Malbolge: some of these do not even have branching or variables, but they are all programming languages; none of them can compute anything that any of the others cannot. The exception might be things like Turner's "Total Functional Programming", which excludes nonterminating computations without, he hopes, excluding much of practical interest; Excel, excluding the macro language, also has this limitation, but in Excel it is more onerous. By contrast, you can't compute so much as a polynomial or NAND in HTML. That is to say, you can't program at all in HTML. So HTML is not a programming language. English does not include Latin, although, e.g.†, phrases like "inter alia" and "et cetera" can be used in English, and it's not uncommon for an English sentence to quote a Latin motto. Similarly, HTML does not include JS and CSS, just as it does not include the URL specification, and Python does not include SQL or HTML; they are six separate languages. † exempli gratia
- 7952 7y agoIt is an abstract form that outputs something seperate and new. In that sense it is like a recipe or a knitting pattern. The artifact created by execution is distinct from the code. The code itself is valued by that output rather than its own intrinsic qualities. And this ability to generate something seemingly novel is what makes coding cool and useful. You can write a bunch of code and get something that has emergent properties. The things you mentioned are usually just data. They are the artifact. They are not generating anything distinct. There is only the data.
- 7952 7y agoIf a kid makes a cool web page by hand coding html they can call it code. Better to encourage people.
- kragen 7y agoSure, HTML is code, just like binary notation for numbers (as commenter breck pointed out). It's just not a programming language. I agree about encouraging people but I don't think that dishonesty is a good way to do it --- they get discouraged and doubt themselves when they inevitably learn that their earlier achievements were faked.
- username90 7y agoWriting code to make a computer do something is programming. HTML is a language used to make a computer do something. Hence it is a programming language. People writing HTML are programming. It is however not a general purpose programming language. Note that writing a Word document is not programming, since people are not writing directly in the language, instead Word generates the code for them. What people see in Word is not a language since it doesn't have a textual representation, and people don¨t write word files directly in docx format.
- kragen 7y agoYour arguments were thoroughly demolished in https://news.ycombinator.com/item?id=20906267 https://news.ycombinator.com/item?id=20906267 before you posted, although you've added a particularly delicious couple of new errors: > Note that writing a Word document is not programming, since people are not writing directly in the language, instead Word generates the code for them By this argument, writing a program in C is not programming either. (This was the sales pitch for FORTRAN: you could fire all your programmers, because the FORTRAN compiler would generate the code for you.) > What people see in Word is not a language since it doesn't have a textual representation This is a particularly amusing error, quite aside from the fact that XML is a textual representation. I suppose programming in Scratch and Labview by this definition isn't "programming" --- while apparently writing HTML would be! Plain ASCII text files have a variety of advantages and disadvantages; it's a standardized, very simple format with half a century of compatible history behind it (and more, if you consider plain text files in other encodings), without extreme limitations. So there are a lot of languages defined in terms of plain ASCII text files rather than OLE containers or whatever, including most popular programming languages, as well as XML, HTML, RFC-822 email, CSV, URLs, and so on. But, as should be obvious, the encoding of your program is entirely orthogonal to the expressivity of the programming language!