Hacker News new | past | comments | ask | show | jobs | submit login
Why JavaScript Is Eating HTML (css-tricks.com)
14 points by gtirloni on Feb 14, 2020 | hide | past | favorite | 5 comments



Programmers have a wide-ranging tendency to want to do everything in a general-purpose language, no matter how unsuited to the task, and actively resist learning specialized languages.

Thus we also get widespread confusion wrt CSS. See also: writing Python instead of shell scripts.


> Programmers have a wide-ranging tendency to want to do everything in a general-purpose language, no matter how unsuited to the task, and actively resist learning specialized languages.

That's why JSX never caught on, and everyone just uses plain JS for React, right?


I don't think the author really understands what's JavaScript... Like, we've had dynamically generated HTML for about 40 years. We just started writing those backend libraries in JS, but the effect is the same as using cgi, Perl, or PHP


> Like, we've had dynamically generated HTML for about 40 years.

No, HTML was invented almost exactly 30 years ago; we didn't have dynamically-generated HTML 10 years earlier.

> We just started writing those backend libraries in JS

There's a difference between dynamically generating HTML documents delivered from the server and dynamically manipulating the DOM on the front end, and the author isn't talking about backend-specific but frontend-focussed libraries (though some can also do server-side rendering.)


This is correct, although I should maybe have been more clear about that in the article.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: