r/ProgrammerHumor • • Jun 24 '18

JavaScript is getting real tired of your jokes

Enable HLS to view with audio, or disable this notification

12k Upvotes

415 comments sorted by

View all comments

Show parent comment

23

u/Cilph Jun 25 '18

HTML is a declarative domain specific programming language

Change my mind.

20

u/anamorphism Jun 25 '18

i'll need you to implement fizzbuzz for me using only html, please.

5

u/Cilph Jun 25 '18

I didn't say it was turing complete.

9

u/anamorphism Jun 25 '18

html doesn't really match any actual definition of programming currently. in the same way i wouldn't call xaml a programming language, i wouldn't call html one. i would say they're both code though. just like i'd call a json or xml file code.

xaml is a markup language used to define ui for an application ... the programming is done in c# (predominantly).

html is a markup language used to define ui for an application ... the programming is done in ecmascript (predominantly).

0

u/[deleted] Jun 25 '18

[deleted] — view deleted comment

4

u/Reverse_Towel Jun 25 '18

I guess it isn't that easy. 100 is a multiple of 5 and should have displayed Buzz.

4

u/williesoutforwonka Jun 25 '18

HTML is definitely a declarative language, and is totally domain specific.

But it doesn’t program anything. It acts as a structured document based off of XML with pre-defined keywords to give it more meaning.

There is no way that you can implement a set of contextually executed instructions....

Now..... that comment from above about PowerPoint being Turing complete has me thinking.

If you include CSS and HTML together, you may actually be able to make an argument for a programming language, since CSS can be used to interact with the user, even without JavaScript.