the Backend-only-for-frontend antipattern), all you've done is add more code that you have to maintain. The add-on feature of "you only ship the delta of the HTML" is just an implementation detail.Įven if you add an intermediary server layer that sits between the JSON api and the browser (i.e. Think "Let's build a JSP/Spring hybrid app that renders both JSON and HTML". To offer up a real modern product surface with both a web experience and other integrations, this approach is a step back to the mid-2000's. The end result is that you don't have to provide different server-side code paths for a CLI, Mobile, Web, or embedded client, and can treat all of them as a "client". the API-First approach) are successful because the data is not tightly coupled to the presentation, and can be converted easily to whatever runtime is consuming it. The approach makes some sense when the only client you're shipping to can render HTML. This isn't strictly related to Hotwire, but it's part of deconstructing the overly complicated mess we've all made of frontend development. "Really curious to continue pushing the ECMAScript 6 + ES Modules approach in the browser. Both for the web, and for our native apps." He shared a 13-minute video demonstration - then added a thoughtful comment about the state of web development today. Hotwire's web page argues HTML over the wire "makes for fast first-load pages, keeps template rendering on the server, and allows for a simpler, more productive development experience in any programming language, without sacrificing any of the speed or responsiveness associated with a traditional single-page application." On Twitter, Hansson called it "a refinement of years of research, experimentation, and SHIPPING HTML AT THE CENTER. All without writing any JavaScript at all. This includes our brand-new Turbo framework.a set of complimentary techniques for speeding up page changes and form submissions, dividing complex pages into components, and stream partial page updates over WebSocket. Basecamp's David Heinemeier Hansson (the creator of Ruby on Rails) announced on Twitter this week that "all the tricks and tooling we used to build the front-end for Hey.com" have now been released as Hotwire (also known as New Magic), "an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire."
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |