> It's amusing to see that the web is haphazardly rediscovering decades of CS research. They finally figured out how to write subroutines into HTML.
Standards are hard and take a long time. C++ hasn't been haphazardly rediscovering decades of lambda expression use, for instance. Web components have been in development in some form for more than a decade.
JS, CSS and HTML were never designed to be a fully fledged programming application development solution, and no one is suggesting that it is supposed to be either. They weren't even designed in paralell.
Now that this has become a requirement, the slow moving spec machine is trying to resolve the issue.
Is this a problem for you? Because it seems to be.
Standards are hard and take a long time. C++ hasn't been haphazardly rediscovering decades of lambda expression use, for instance. Web components have been in development in some form for more than a decade.