Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
C0D46254959dNot 1 HTML tag!
And that includes jsx and exporting HTML back to be rendered.
I'm not really sure I follow his reasoning.
Although I also don't really care if someone called HTML a programming language or not.
There's probably a right answer to that but I don't really have much reason to care either ;)
theabbie392659dThey are counting JS in HTML, and thus, as per functionality, HTML is a programming language though it's actually JS.
vintprox175359dReference implementation is not the same as specification. Council shall immediately surrender their right to argue about HTML!
devJs86059dYou are correct.
JSX is JS only, the HTML tags that you write there are 'syntax sugar'.
No HTML there, its all just JS that looks like HTML.
serious question: if you append child nodes right from the start you have technically just written
<script src... ></script>
right? not like this might be the *best* possible way... no time to proof that myself rn, though.
How the fuck does needing it to make websites means programming language?
By that logic, Microsoft word is a programming language, and so is PDF and other file formats, that's not what defines a programming language.
wisdommatthew1359dIf HTML is a programming language then I am a yaml developer 😂
react-guy129559dWell technically, html is a programming language. A descriptive one: it can describe something somewhat "fixed". Js, C++ etc. are processing languages : they can describe a process.
That's all for the theoretical precision nobody cares about 😅
vintprox175359d@C0D4 well, in the end of the line you will see HTML via DevTools and such, because they allow so. However, DOM manipulations remain for the scripting. And JSX is exactly a scripting *the* template, chaining createElement functions behind sugar-coated syntax.
It may be HTML-compliant, but not as much as templates in Vue single-file components, because in JSX you need braces for dynamic attributes. =)
C0D46254958d@vintprox don't defend this.
A template contains HTML, regardless what you want to call it, or how much abstracted sugar you want to put on it. If your rendering HTML from the server side, then your rendering HTML.
There's no difference between handing a <div> in a .HTML file and adding let div = <div> and spitting that up to the client side, someone still wrote HTML somewhere.
The argument OP has is, he can write a website without HTML, I'm simply highlighting he's own requirements.