Live data from Hacker News

Hotwire: HTML over the Wire

hotwire.dev

131–140 of 573 posts

Re: Hotwire: HTML over the Wire

#131
post #107

Earlier quoted context omitted.

Javascript as a language is actually pretty decent these days, your criticism probably applies more to certain parts of the ecosystem.

No, I'm talking about js as a whole. Standard library is crap, inconsistent, even the most basic of naming conventions are not followed anywhere. The fact that the standard library jumps between camel case, pascal case, snake case and unicase at random is a perfect example. The list of absurdities is beyond ridiculous[1]. [1] https://github.com/denysdovhan/wtfjs

Who on this thread was saying what's old is new? 100% of what you said has also been lobbed at PHP recently and I've heard similar complaint about PERL and MS-SQL (that I remember well) and I'm sure others (one of those Delphi product too)

Re: Hotwire: HTML over the Wire

#132
post #126

Earlier quoted context omitted.

Livewire, of course, having been heavily inspired by Phoenix LiveView https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html

Tho, LiveWire is AJAX, while LiveView and Stimulus Reflex are Sockets. LW is a pleasure to work with for small pieces of interactivity.

I believe (but could be wrong) that liveview degrades to http long poll.

Re: Hotwire: HTML over the Wire

#134
post #74

Spoiler, 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

#135
This is exciting! I am less convinced by the Stimulus part though. I currently prefer the Htmx (ex Intercooler) + AlpineJS combo, or VueJS components sprinkled into views for heavier stuff (setup is a bit tricky but then it’s very easy to enhance views with augmented html). Am I missing something?

Re: Hotwire: HTML over the Wire

#136
post #127
post #32

Earlier quoted context omitted.

The inventor of one of the most successful js frameworks might be a tad biased when it comes to the whole „as little JavaScript as possible“ thing.

he is complaining on Hey's lack of speed and interactivity, not complaining about the lack of js. which is a fair complaint, I would say.

It is. But he also wrote this in a subsequent tweet:

> For a typically long running app like an email client, the obsession with shipping as little JavaScript as possible is actually detrimental to the end UX.

Re: Hotwire: HTML over the Wire

#137
post #120

This 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 don't think this addresses all of what SPAs is used for. It seems to assume full-stack control.

Re: Hotwire: HTML over the Wire

#138
post #120

This 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…

Nice casual racism you threw in there.
Post reply on HN