Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
tbodt7447yhttps://codegolf.meta.stackexchange.com/... has the final word on this and every question about whether X is a programming language.
-
Kaeladar247yIf HTML is a set of instructions, then a bitmap image is a set of instructions as well
-
th3113397yI believe Professor Brailsford to be better qualified to talk about this than probably anyone on devRant, especially more than some guy on SE.
https://youtu.be/4A2mWqLUpzw -
... and brainfuck is a completely sensible and high level programming language -_-
-
@Fydrenak, I just gave to this professor my 9 minutes of my life, and all what he achieved is: "in restricted sense, even I am a programming language, every time I ask somebody to answer my question, I am actually calling a function which returns me a result, and even better, I am actually turing complete, so I am closer to be a programming language than html"
-
I guess with your arguing you could also say that H265 is also a algorithm.
But what defines a programming language is that your programm can decide what to do based on available information.
So in short: if, else, ...
HTML does NOT have such things. Therefore it is no programming language.
Good luck creating something like snake WITH only html that actually works. -
Linux438107y<!DOCTYPE html>
<html>
<body>
<h1>My First Program</h1>
<p>Hello World.</p>
</body>
</html> -
SHA-25614477y@Linux 1337-Programmer :P
If HTML is a programming language yaml, XML and Json are too ?
HTML is a set of instructions for a program to do stuff not the computer -
To continue;
Languages like HTML follow a logical structure, and produces an output. Why are only scripting languages considered programming languages? This is entirely incorrect and definitely bothers me incredibly, especially because the programming community is usually so logical about this stuff, but this topic seems to be based off arbitrary criteria when most of anything with logical structure and some sort of output should be considered a programming language. -
@Condor Turing completeness is an arbitrary set of rules which I disagree with. Are people who make static websites not programmers? Of course they are, albeit simple ones. Turing completeness should be a trait of scripting languages. Programming is an incredibly broad spectrum and I don't understand nor agree with how specific people seem to interpret it as, and am presenting my argument as such.
-
PysKa512157yPeople who make static websites are coders. A programmer makes programs. A program is able to execute instructions. An instruction can either be a comparison between two numbers, a call to a function, etc. HTML does not execute instructions, neither does XML, like others commented. It simply declares the structure of the website as it is, and for the same html, the same website is always generated. So it cannot be a program.
-
also this.
Pls don't mention me, i don't wanna get involved in this. Also, if useless addition, then leave it alone, but AR using 10 line of HTML is nice
https://medium.com/arjs/... -
@PysKa512 If I told you "Put a rock in the garden, 10 inches from the north end" is that not an instruction?
-
@AlgoRythm exactly, u did give the command to do so. On the other hand, html just place a mark, and let me to go, find the mark and place the rock.
-
@Condor HTML is interpreted by a browser, Lua and Python by their respective interpreters, c is compiled, my argument is that even thought HTML is helped out a lot by it's environment (The browser does most of the work) it is still a list of logical instructions for a computer to follow, in HTML's case, to dictate how pixels appear on a screen. When you break it down, it's all just programming.
-
If you want to look at it this way so:
Mam: "go and tidy up your room!"
Is she now a programmer?
Girlfriend: "do me from behind!"
Is she now a front end programmer?
A little baby cries, clearly instructing me to feed it or change a nappy.
Oh my, my 3 months old baby is already a programmer.
The dog is jumping at the door... -
@anicka-burova you're taking my examples and using them quite a bit too literally. We are still talking about computers ;)
-
@AlgoRythm and that was my point. Programming language has defined set of attributes. You decided to ignore couple, so html can be a programming lang as well. I decided to ignore the fact, programming language is computer related.
-
PysKa512157y@AlgoRythm if you instructed me to "Put a rock in the garden, 10 inches from the north end", the second time you give me this command will always result in the same result, no matter how complex it seems. However, what if you instructed me to "Place a rock in the garden if we are in February, otherwise place a flower." will result in different results deppending on the date I execute the command ;)
-
@AlgoRythm i know I'm hopping in late here, but Turing completeness isn't an arbitrary set of rules in any way shape or form. For a language to be Turing complete, it must be able to decide any computational question that is decidable by *any* process whether that be natural, physical, or extraterrestrial (to abbreviate the Church-Turing Thesis). This means that (computationally speaking) i am no more powerful than Lua, or Python, or C. In fact, restricting programming languages to being Turing complete is what allows us to do all of these amazing things with them. You say Turing completeness restricts the spectrum of programming languages, but I challenge you to find a programming language that is not Turing complete.
A few questions for you to ponder.
Would you consider RegExp to be a programming language?
What about JSON?
What about GIF?
What about a DFA?
Now ask yourself, is HTML any more a programming language than any of the above? -
@AngryDev I've already expressed my opinion on the JSON / image file thing, and why is Turing completeness the standard for a language? Just because someone said so?
-
@AlgoRythm sure, but you have not expressed anything on regexp or DFAs. In terms of your argument that "oh it needs to be hard coded to be a programming language", let me remind you that in its early days, JSON was often hardcoded. In fact, people still hardcode JSON, and conversely, one can easily generate an HTML website without ever writing any HTML, much like you can do with JSON.
To address the second half of your response, I still don't think you grasp what Turing completeness really means. It means the language is capable of doing anything. That means if I write a program in C, I can do anything I can do in JAVA. Or in Python. Or in LaTeX. Or in HTML. But if I write something in HTML I can't do anything I can do in C. -
Kryptic677yAccording to mw dict online a program is "a sequence of coded instructions that can be inserted into a mechanism (such as a computer)" so if HTML markup can do that (with a browser as a compiler) then why isn't HTML considered a 'programming language'?
-
... and my arse is a shit factory and my cock is a c...
If you throw logic and facts out of window, you can argue anything. Like global warming not being real -
PysKa512157yIf you know machine language, which is the language of the CPU (the set of instructions the CPU can execute), you will see that HTML can do none of that.
-
@PysKa512 HTML forces the browser to make calculations to display controls such as images that are 80% the width of their parent.
-
PysKa512157y@AlgoRythm Fine. Can you write me a pure HTML page that gives me my age given the date I was born?
-
I feel like if we put a load of developers in a small room, shouted "HTML is a programming language" and then locked the door we could somehow harness the energy to power a small city...
Scripting languages, markup languages, database querying languages, etc. Are all types of programming languages. A program is a set of instructions for a computer to follow.
HTML is a programming language, fight me.
undefined