161
Die! (lemmings.world)
submitted 1 year ago by Alby003 to c/programminghumor@lemmy.world
top 26 comments
sorted by: hot top controversial new old
[-] hperrin@lemmy.world 18 points 1 year ago

HTML is a programming language in the same way that Taco Bell is Mexican food.

[-] moog@lemm.ee 8 points 1 year ago

I did not think this was a hotly debated topic but, if you're going to call HTML a programming language then you probably aren't far from calling CSS a programming language and that is not a reality I'm willing to accept.

[-] garrett@lemm.ee 6 points 1 year ago

But CSS is a programming language: https://notlaura.com/css-is-a-programming-language/

The video presentation version of this is lots of fun too: https://youtu.be/dtddBM8s7xY

[-] moog@lemm.ee 4 points 1 year ago

Ty for this. Good read

[-] mp04610@lemm.ee 5 points 1 year ago

A programming language is a set of instructions written by a programmer to deliver instructions to the computer to perform and accomplish a task.

By that definition, HTML is a programming language.

[-] ajmaxwell@lemmy.world 15 points 1 year ago

HTML is an initialism for HyperText Markup Language. It's purpose is to provide structure to data and cannot perform logic, the defining feature of programming languages.

[-] HollandJim@lemmy.world -1 points 1 year ago

I guarantee you that the people writing that HTML isn’t a language are the junior devs that use DIVs for everything in their structure, especially actionable elements like buttons or anchors. Let’s ignore that the “DIV is the element of last resort”, as per the html spec. Also, I doubt that anyone suggesting CSS isn’t a language hasn’t picked up a OReilley’s manual on it recently - 1100+ pages, before you get to the glossary. HTML & CSS are quite a powerful combination.

[-] ajmaxwell@lemmy.world 1 points 1 year ago

HTML adds structure to data and CSS adds visual styling to HTML data. The only way to make that data interactive, or have it perform other complex tasks is with Javascript. JS is a scripting language which is a subset of programming languages.

Buttons, links, etc only move you from one piece of data to another via the browser. HTML cannot and does not perform any actions itself.

[-] rain_worl@lemmy.world 0 points 2 months ago

i have been enlightened about semantics of elements, take a look at my webpage, and i do not think html is a programming language

[-] HollandJim@lemmy.world 1 points 2 months ago

Mozilla argues otherwise: https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML

Most people define HTML based on the original acronym, but the current HTML5 iteration is much more than many devs realize.

[-] rain_worl@lemmy.world 0 points 2 months ago

would you also argue that markdown is a programming language?

[-] HollandJim@lemmy.world 1 points 2 months ago

Mozilla argues otherwise: https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML

Most people define HTML based on the original acronym, but the current HTML5 iteration is much more than many devs realize.

[-] rain_worl@lemmy.world 0 points 1 month ago* (last edited 1 month ago)

gonna state this: html is a language, but not a PROGRAMMING language. each individual regex is also a language. assumed that you thought "language" and "programming language" were equivalent
sidenote: "gonna state this:" could be prefixed to any comment without changing the meaning, but it sure does change the vibe

[-] HollandJim@lemmy.world 2 points 1 month ago* (last edited 1 month ago)

I’m the lead UI developer for one of Europe’s biggest fintech firms, and we’re up from #4 back before I got there (many factors in that, so okay, but the UI update added to our success). I’m reviewing quite a few CVs lately looking for Angular FE devs and honestly, an attitude like that won’t even get you in the first round.

This discussion started because I said many FE devs don’t develop with HTML in mind - it’s all divs and js. Or they rely heavily upon a framework to do that for them. I just passed on someone in the third round because I asked for a lightweight modal with esc exit, background and focus, and they wheeled out this whole system using prime ng and p-modals, where just using the element would have worked.

To be fair, they also argued that using their method would have been faster and more consistent. That’s a person who relies on toolkits instead of understanding that their existing tools have depth.

May I suggest, don’t be that guy. But in 3 years I retire to an island to never have these arguments again, so what do I care? Don’t listen to anyone else - be my guest.

Just to change the vibe.

[-] rain_worl@lemmy.world 1 points 1 month ago
[-] HollandJim@lemmy.world 2 points 1 month ago

Well, now you know to look, which is always a good thing. Lots of new good stuff to check out in css and html - look up Baseline 2022 (and beyond) to familiarize yourself with the new goodies.

[-] rain_worl@lemmy.world 0 points 1 month ago

programs should keep english in mind when creating logs -> english is a programming language

[-] Phrodo_00@lemmy.world 8 points 1 year ago

HTML is not trying to accomplish a task but specifically displaying stuff on the screen. Like a word document, or a jpeg.

[-] GroteStreet@aussie.zone 4 points 1 year ago

HTML is not trying to accomplish a task but specifically displaying stuff on the screen.

But what if my task is to display stuff on the screen?

[-] kakes@sh.itjust.works 2 points 1 year ago

Then you would be a rendering engine, built from a language that isn't HTML.

[-] rain_worl@lemmy.world 0 points 2 months ago

well from that argument, you can't make a compiler for a real language

[-] rain_worl@lemmy.world 0 points 2 months ago

i want to display stuff on my screen, and i'm not a rendering engine, i'm a human!

[-] tdawg@lemmy.world 6 points 1 year ago

Is it Turing complete though? That's normally the real test

[-] BeigeAgenda@lemmy.ca 8 points 1 year ago

CSS+HTML is Turing complete but not html alone.

[-] rain_worl@lemmy.world 1 points 2 months ago

that assumes an infinite document (i think)

[-] Phrodo_00@lemmy.world 1 points 1 year ago

Magic the Gathering is Turing complete but nobody's calling it a programming language. Expressiveness and purpose are probably more important for calling something a programming language.

this post was submitted on 23 Oct 2023
161 points (91.3% liked)

Programming Humor

2644 readers
12 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 1 year ago
MODERATORS