News for hackers. Stuff that matters.
Re:Facts every web dev should know before they burn out and ... by Vinnl on Thursday October 21, 2021 @06:52AM (#28942710)
I'm pretty up-to-date on front-end developments but Hotwire is barely on my radar, so I had to look up the release date, but it seems to have been released just this year? (I thought it was last year.)

Though my stack has certainly evolved, it's been mostly the same since 2016, with really not that much new to learn. Adopting something released just this year doesn't seem like the most obvious choice when looking for a stable stack.

Re:Facts every web dev should know before they burn out and ... by dghlsakjg on Thursday October 21, 2021 @11:58AM (#28946407)
Hotwire and a few analogues (e.g. LiveView for Phoenix) are an emerging design pattern.

I think for a lot of business cases they are going to replace js frameworks. They are domain specific (Rails, Phoenix, etc..), but they allow you to essentially replace a lot of SPA functionality with a library that takes an afternoon to grok for a back-end dev.

They won't replace React, Vue, etc... But they can replace it in places where a full js framework is overkill (which is probably a majority of the places that I see it).

As a backend dev, I think that they have incredible promise. They make interactivity MUCH easier.

Re:Facts every web dev should know before they burn out and ... by qaq on Friday October 22, 2021 @12:30AM (#28953766)
Hotwire is lang/framework agnostic.
Re:Facts every web dev should know before they burn out and ... by d3nj4l on Thursday October 21, 2021 @08:02AM (#28943194)
Hotwire is just a name for a bunch of tech that has been around for a while. The components of Hotwire - Turbo and stimulus - have improved over time, for sure, but the core ideas haven't changed much, if at all. I worked on a hotwire side project recently and described it to a friend as "writing Rails like it was 2009." It feels really good because I've always found it hard to grok SPAs and the like, but could generate tolerable server-side generated webapps.

Old wine in a new bottle, basically.

Re:Facts every web dev should know before they burn out and ... by qaq on Thursday October 21, 2021 @08:41AM (#28943558)
Even if it is not hard to grok it's often unnecessary complexity as users literally can not tell the diff. in most cases.
Re:Facts every web dev should know before they burn out and ... by qaq on Thursday October 21, 2021 @06:57AM (#28942745)
It's a tiny lib that replaced turbolinks from DHH and the gang. It's used for many prod deployments and it's pretty convenient for people who do not enjoy FE SPA style dev. There are obviously other options.