Am I the only one who was very, very surprised when the screencast immediately jumped into Rails? There's no mention of Rails anywhere on the landing page.
Hotwire: HTML over the Wire
391–400 of 573 posts
Re: Hotwire: HTML over the Wire
#392Spoiler, it's just Ajax but it pushes the data through your templates before sending it to the client. We were doing this literally over a decade ago in the early days of XHR.
The goal is to have a productive set of patterns for the programmer to follow for dynamic updates. Less boilerplate. More reuse. Consolidation of app state to the server. Feel free to post your code from a decade ago so that we can do a bake-off and compare implementations side-by-side.
Re: Hotwire: HTML over the Wire
#393This is so exciting to see, especially for older folk like me. Almost 20 years ago, one of my professors told us before graduation that hot tech is mostly about the idea pendulum swinging back and forth. I immediately chalked it up to 65+ above white wise men snobbery. However, this is exactly that. We started with static pages, then came Ajax and Asp.net and the open source variants, then we went full SPA, now we ar…
I completely agree with this. For reference, I'm a relatively new developer - 3.5+ years of experience in my first developer position. At the beginning of college everyone was SUPER into NoSQL. All my friends were using it, SQL was slow, etc. Nearing the end of college and the beginning of my job I began seeing articles saying why NoSQL wasn't the best, why SQL is good for some things over NoSQL, etc. Technology is c…
Re: Hotwire: HTML over the Wire
#394Earlier quoted context omitted.
Yes, I’m curious how hard it is to get this working with a different backend stack. I’d love to have this in Go.
Getting turbo is trivial on any backend. Just include the js. Stimulus is also not any different from any other javascript you'll write. There's no need for any kind of scaffolding from the backend stack except for some features - and those aren't particularly hard to implement either. Source: Using Turbolinks & Stimulus js with Django.
Re: Hotwire: HTML over the Wire
#395Earlier quoted context omitted.
If you type a chat message in your browser, how does it automatically show up in my browser with XMLHttpRequest?
In old school chat rooms, this was usually done by polling for new messages every X seconds, or doing a refresh / reload of an IFrame containing the chat.
Re: Hotwire: HTML over the Wire
#396Earlier quoted context omitted.
If you type a chat message in your browser, how does it automatically show up in my browser with XMLHttpRequest?
Long Polling is how we used to do it. The web page opens a request to the server but the server does not reply. Once the event happens on the server, the server replies to the old request and the client opens a new request.
Re: Hotwire: HTML over the Wire
#397What's old is new again. I recall ASP.NET had some interesting tech around this in the 2000s where it could dynamically update parts of the page. If I recall correctly, this made use of that new technology of the time called "XMLHttpRequest" (/s) which pretty much jump-started web 2.0.
My thought exactly, though I fully support that. I often rant about how the modern web is billions of layers of duck tape over duck tape and it has become an unmanageable mess of libraries, frameworks, resources, all while javascript remains the most outrageous and absurd language ever created. I'm by no means a fan of rails or ruby for that matter but I think things like these are a considerably better alternative t…
Re: Hotwire: HTML over the Wire
#398Earlier quoted context omitted.
>65+ above white wise men snobbery Nice! Casual ageism and racism mixed into one post.
Conventional wisdom is discrimination against privileged groups such as white men is less offensive because they’ve endured so much less of it. On one hand, it’s true. It’s part of white privilege which is tangible. On the other hand, however less often people in a privileged class are realistically impacted by discrimination, it’s still > 0.0%. Since it usually costs nothing more to include everyone it seems useful.…
The powerful argument is that you should treat everyone well, period, and not do some kind of calculation to decide how cruel you're allowed to be to them.
Re: Hotwire: HTML over the Wire
#399It's just another attempt to put the square peg in a round hole.
The point is: "The web" is not, and never was, a framework for application development! It's the wrong tool. No matter how hard you try.
You want to build applications? Use tools that where build from the ground up to support application development.
On mobile people realized mostly by now that "native" is the way to go. Because native apps are superior along any dimension compared to "web-apps". The same is of course true on the desktop.
Mature and full featured technology to build "native" cross desktop applications exists since forever. Just have a look at great tools like IntelliJ IDEA or Bitwig Studio for example.
Hotwire on the other hand is just another try to misuse "the web" as an application development platform. It's closer to what the web actually is (namely HTML pages) but it's still wrong on the fundamental level (as it tries to build an app framework on top of something that was meant to be only a hyper-text system).
Let's see how long it'll take until people realize this truth - and we're really full circle.
Re: Hotwire: HTML over the Wire
#400It seems like DHH is just trying to make relevant tooling without writing Javascript, which I guess is fair, but given all of the advancements in all of the other tech, this really just does not seem like a good idea to me.