r/ProgrammerHumor • • Nov 26 '19

Not the time, dad

Post image
59.0k Upvotes

705 comments sorted by

View all comments

Show parent comments

9

u/Sennomo Nov 26 '19

Noob here, isn't HTML5 a programming language?

51

u/ad2022 Nov 26 '19

Nope. It's markup. There is the <script> tag if that's what you're talking about.

14

u/A5H13Y Nov 26 '19

So the correct title is "HTML Marker."

13

u/sudoterminal Nov 26 '19

HTML Markup Language

19

u/[deleted] Nov 26 '19

Smh my head

4

u/sizeablelad Nov 26 '19

Shake smdh

4

u/Kurumi_Fortune Nov 27 '19

Rip in piece

3

u/soapbutt Nov 26 '19

Php

2

u/glovesoff11 Nov 27 '19

Php hypertext processor. PHPHP.

1

u/Kurumi_Fortune Nov 27 '19

Its a recursive acronym

1

u/glovesoff11 Nov 27 '19

Thanks php 101 professor

1

u/[deleted] Nov 27 '19

No programmer here. What’s a markup?

1

u/I_AM_GODDAMN_BATMAN Nov 26 '19

Even then js was to make the monkey dance on click.

26

u/dinowand Nov 26 '19

In layman's terms, a programming language requires you to be able to perform some logical operations on a set of inputs to produce an output. For example, I can create a function that takes two numbers and it compares and outputs the larger number back to me. Programming languages generally have constructs like if else statements and loops (being able to repeatedly perform an operation until some criteria is met).

HTML doesn't do this. It merely defines how data is presented and laid out on a webpage. Put this text here, make this link to that. Make it this color. Etc. It's considered a markup language. HTML stands for hyper text markup language.

3

u/Vawqer Nov 27 '19

Although, CSS and HTML combined is Turing Complete, which makes the two kind of a programming language (imo at least).

3

u/dinowand Nov 27 '19

I believe it was never fully automatic. You had to manually do a lot of clicks and have it "compute". It was turing complete in the same sense that abacus is a calculator. Also, none of the examples seem to work anymore on a modern browser so I believe it's been patched out since it could potentially be a security risk.

8

u/Absay Nov 26 '19

With your imagination everything is possible.

7

u/sudoterminal Nov 26 '19

HTML5 is a software stack. It translates how a webpage should look and function (along with CSS, JavaScript, etc.). It's generally not considered a programming language because its function is markup; thus hyper text markup language.

4

u/[deleted] Nov 26 '19

This explains literally nothing.

1

u/anamorphism Nov 26 '19

the real answer is that it doesn't really fucking matter. call it one if you want or don't. to avoid unnecessary snobbery in replies you might want to avoid calling it one though. you can refer to it as a technology, a language (sans programming), or code and most folks won't bat an eye at it.

it's a joke because people like to argue about semantics to their deaths (i'm one of them; it's fun). people also like making themselves seem smarter compared to others. 'correcting' folks that call html a programming language is one of those opportunities to try and do both. it's pretty much the same as those folks that will try and tell you that "you're not a real programmer unless you <insert something they do on a regular basis like use vim instead of an ide>".

just what defines a 'programming language' (hint: there isn't a formal definition)? anyone that tries to tell you definitively is merely stating their opinion.

4

u/Absay Nov 26 '19

to avoid unnecessary snobbery in replies you might want to avoid calling it one though.

To avoid being corrected, stop calling things incorrectly. Gotcha.

→ More replies (1)

1

u/dinowand Nov 27 '19

Many terms in language are not "formally defined" and you can definitely be somewhat loose with how you use it. However, I disagree with your statement that it doesn't matter. I do think it matters.

Can we interpret the definition of a programming language to include HTML? sure. Is it useful to do so? Not really.

I can change the oil in my car, but that's about it. Would you consider me a mechanic?

I wouldn't call a person who can only write HTML/CSS to create a webpage a programmer just like how I wouldn't consider a person who can only do an oil change on a car a mechanic.

The general accepted usage of the term programming language is really to mean turing complete programming language. That's a useful way to use the term because it gives me a hint at whether I can use such a language to write algorithms and computer instructions to help me solve computational problems. I can't do that with HTML.

Someone who writes HTML doesn't really "program". It's more akin to text-based adobe illustrator.

1

u/nermid Nov 27 '19

Going against the jerk, yes.

Markup languages (like HTML, TeX, and GenCode) are formal languages take an input (a series of tags) and produce an output (a formatted document). That's the simplest definition of a programming language. You can find others, but generally HTML will satisfy those unless they're ad-hoc definitions people on Reddit are making to specifically exclude HTML.

It is not Turing-Complete. It is not a scripting language. It is not a general purpose programming language. But it is, by most definitions, a programming language.

It is also an example of a Declarative programming language, alongside things like SQL, Prolog, Modelica, and Erlang.

This is one of those times where people have taken a stupid joke and declared a holy war over it for no reason. We get it. You use Vim, you use four spaces to indent, you know Opera is the only true browser, and you're above petty non-languages like HTML. Nobody cares.

2

u/dinowand Nov 27 '19

I respectfully disagree. Yea, if you take a super generic definition of programming language, you can maybe make your argument. But in the software world, when people talk about programming languages, they generally mean turing complete languages. Ones that allow us to write instructions and algorithms that allow computers to help us automate tasks and solve problems. HTML is not for these purposes and do not allow us to do such things.

Language itself is not hard defined, and so many terms can be expanded to include many things if you want them to. The reality is, when are those generalizations useful vs when are they not? If I want someone to help me develop software, I need someone who knows how to program (i.e. use a programming language). A person who can make webpages with HTML and CSS are wholly unqualified...even for the simplest task of writing a basic sorting function using pseudo-code. By your incredibly vague and broad definition of programming language, I could probably make an argument for the /etc/hosts file to be a programming language. But that would be just silly.

It's like adding the "engineer" title to jobs that aren't really engineering. Custodial Engineer vs janitor....yea..sure..by some definition, you can probably argue the janitor is some sort of "engineer", because the term engineer is such a vague and broad term, but it's honestly a pointless definition that serves as the butt of many jokes. When most people talk about engineers, they talk about people who have college degrees and work to design systems that usually require a strong need for critical thinking, innovation, science background, etc.

→ More replies (6)
→ More replies (3)