Show HN: Object-Oriented HTML – Proposal for new powerful features in HTML https://ift.tt/Nyf1LlB

Show HN: Object-Oriented HTML – Proposal for new powerful features in HTML Hey all, I'm a big fan of the HTML-first + Progressive Enhancement approach to UI development! For a background: 1. I like to be able to write HTML by default and progressively add JavaScript (and, in the same way, progressively involve tooling) instead of go ahead of the problem by going the other way around! 2. Also turns out that UIs are more resilient when built on the same principles: - given how browsers process web pages: HTML initially, then JavaScript eventually; with the bulk of the page being best done at the initial phase - and given how, on a more general note, performance is a function of browsers doing the heavy lifting But it turns out that as compelling as it is to move more to HTML, there isn't as much you can do in HTML as you'd like to! In my experience, four specific limitations have felt like a deal breaker: 1: How Do You Do Reactivity? 2: How Do You Make Components? 3: How Do You Re-Use Components? 4: How Do You Pass Data/Props? I've since committed to exploring the answers to those questions, and my life's work here is what I propose as Object-Oriented HTML - a set of HTML/DOM-level features that let us write dynamic and object-oriented markup! (Full explainer is here: https://ift.tt/ycD9YEs... ) I am hoping that this moves us forward on the HTML-first + Progressive Enhancement paradigm! But as with everything on the web, it's all about your thoughts!!! https://ift.tt/sp8EV64 January 26, 2024 at 12:40AM

Comments