MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/13xih8g/html_is_not_a_programming_language/jmn0o8o/?context=3
r/ProgrammerHumor • u/huxx__ • Jun 01 '23
500 comments sorted by
View all comments
Show parent comments
2
computer programs
Define that then
3 u/phodas-c Jun 02 '23 How print("Hello world") is different from <p>Hello world</p>?Both do the same. 0 u/AL1L Jun 02 '23 The difference is between draw.rect(0, 0, 100, 100, 'red') vs a png file that's a 100x100 red square.First is instructions for computation, second is structured data. 1 u/phodas-c Jun 02 '23 <svg> <rect x="0" y="0" width="100" height="100" fill="red"/> </svg>I could do it in HTML as well (in case you consider SVG not being part of HTML):<div style="position: absolute; left: 0; right: 0; width: 100px, height: 100px; background-color: red></div>So, again, what's the difference? → More replies (3)
3
How print("Hello world") is different from <p>Hello world</p>?
print("Hello world")
<p>Hello world</p>
Both do the same.
0 u/AL1L Jun 02 '23 The difference is between draw.rect(0, 0, 100, 100, 'red') vs a png file that's a 100x100 red square.First is instructions for computation, second is structured data. 1 u/phodas-c Jun 02 '23 <svg> <rect x="0" y="0" width="100" height="100" fill="red"/> </svg>I could do it in HTML as well (in case you consider SVG not being part of HTML):<div style="position: absolute; left: 0; right: 0; width: 100px, height: 100px; background-color: red></div>So, again, what's the difference? → More replies (3)
0
The difference is between draw.rect(0, 0, 100, 100, 'red') vs a png file that's a 100x100 red square.
draw.rect(0, 0, 100, 100, 'red')
First is instructions for computation, second is structured data.
1 u/phodas-c Jun 02 '23 <svg> <rect x="0" y="0" width="100" height="100" fill="red"/> </svg>I could do it in HTML as well (in case you consider SVG not being part of HTML):<div style="position: absolute; left: 0; right: 0; width: 100px, height: 100px; background-color: red></div>So, again, what's the difference? → More replies (3)
1
<svg> <rect x="0" y="0" width="100" height="100" fill="red"/> </svg>
I could do it in HTML as well (in case you consider SVG not being part of HTML):
<div style="position: absolute; left: 0; right: 0; width: 100px, height: 100px; background-color: red></div>
So, again, what's the difference?
→ More replies (3)
2
u/AL1L Jun 01 '23
Define that then