Hacker News new | ask | show | jobs
by avmich 2290 days ago
Do you approach pages as applications or as marked up documents?

In those many cases when the page just carries information - it's not, for example, application-in-page, where you can change parameters and see the results - it's a document. A document is simpler than an app, doesn't need full power of Turing complete engine, and because of that, allows easier tools to manipulate - extract data, render differently (like for users with disabilities), modify (e.g., combine with another data set).

Sure, documents can be considered apps - a simple version of apps. There are also reasons to explicitly maintain strictly lower complexity for something which is not a proper app. For those, webcomponents could be overkill. Just imagine webcomponents with which you never use at least some of their capabilities?

1 comments

I don't see much of a difference if you're doing SSR though. It'd just mean not delivering code that never gets used. If I'm just showing documents, then that's what it is. It needs nothing else.