Live data from Hacker News

htmx

htmx.org

261–270 of 291 posts

Re: htmx

#261
post #259

Earlier quoted context omitted.

Hmmmm... can you define a "poor connection"? The web used to work the "htmx"/hypermedia through all the dial-up years where things were REALLY slow. I see no reason it would not work now.

"Hmmm I know better than you". Peak HN lol. This is for middle of the desert time tracking.

Woudn't a native app be better for that anyway? Why depend on a browser for this?

Re: htmx

#262
post #52

Earlier quoted context omitted.

I might be going against the grain here, but the JS ecosystem is just a series of goalposts that are constantly moving and it has burned so many people over the years that folks just don’t want to deal with it. I’m fine learning JS, but with the ecosystem it isn’t just learning JS. It’s learning the new hotness for packaging / versioning, it’s the frameworks that are constantly in flux, it’s the inconsistent abstract…

I think this comment is a bit out of date, especially if you’ve been watching JS from a distance for the past couple decades. This would’ve been true circa 2014. In 2023 it’s obsolete. There’s one framework that won, that’s all you have to learn, as far as the industry goes (as opposed to hobbyists) it’s been decided. React won. React is the framework you learn. “Popular frameworks for the past 6 years” - React has b…

Hard disagree… react is probably one of the best examples of this. React 15/16/17/18 over this period of time is a nightmare to maintain for people who don’t keep up with react if they want to casually jump in or out of.

If you built an app in react 16 and wanted to upgrade to 18, using the documentation it almost resembles 2 different frameworks. Sure, maybe the code executes, but all the js devs would be like “why did you write it like that”?

Re: htmx

#263
post #259

Earlier quoted context omitted.

"Hmmm I know better than you". Peak HN lol. This is for middle of the desert time tracking.

Woudn't a native app be better for that anyway? Why depend on a browser for this?

How many people will give a runaround before answering the question?

It's meant to run on a laptop. In an existing site that people will already be using. It's free software. If you wanna build a native client, too, be my guest. I might at some point.

Re: htmx

#264

Earlier quoted context omitted.

That’s a bubble. You are in a bubble. React is dominant, sure, like the US is dominant, but it’s not The World.

The important part is that it's a bubble you can choose to live in. Companies everywhere use React and almost no one need ever choose to learn something else. As long as you know it you will be employable for another 20 years, just like with Java.

But people in that bubble keep shaming people who aren’t… and react keeps changing, so it’s not like you learn it once, it requires careful study and understanding of all the different permutations that are used in different environments.

You generally can’t go from company A to company B who both use react and have the same calling convention, code structure or tool chains even though they are both using react.

Re: htmx

#265
post #263

Earlier quoted context omitted.

Woudn't a native app be better for that anyway? Why depend on a browser for this?

How many people will give a runaround before answering the question? It's meant to run on a laptop. In an existing site that people will already be using. It's free software. If you wanna build a native client, too, be my guest. I might at some point.

I thought the answer would be implicit in my question, but it's not very difficult to find an explicit answer, it's the second essay on the essays page: https://htmx.org/essays/when-to-use-hypermedia/#if-you-requi...

Having said that, for a time-tracking application, personally I wouldn't be OK with the risk of a browser screw-up (e.g. site data deleted, malware hoses the browser) losing tracking data. But you do you.

Re: htmx

#266
post #263

Earlier quoted context omitted.

How many people will give a runaround before answering the question? It's meant to run on a laptop. In an existing site that people will already be using. It's free software. If you wanna build a native client, too, be my guest. I might at some point.

I thought the answer would be implicit in my question, but it's not very difficult to find an explicit answer, it's the second essay on the essays page: https://htmx.org/essays/when-to-use-hypermedia/#if-you-requi... Having said that, for a time-tracking application, personally I wouldn't be OK with the risk of a browser screw-up (e.g. site data deleted, malware hoses the browser) losing tracking data. But you do you…

I mean, they use Google sheets or another web app already, so....

Re: htmx

#267
post #123

Earlier quoted context omitted.

What I hate is that you don't even write JavaScript anymore. You write fantasy future JavaScript. Sure, it will be available in ECMAScript 23, scheduled to drop in real browsers in 2092. But for now, here's a convoluted mess of polyfills, Babel, and WebPack, that we HOPE papers over the real behaviour of browsers, and suddenly your test-and-debug cycle has introduced a flow-shattering 15-second build cycle each time…

With evergreen browsers, you can write modern JavaScript and it'll run in the browser just fine. And it's not like TC39 is pumping out lots of wild changes. The largest recent change is what, top level await? That's not exactly a wildly different language feature. A lot of this JavaScript criticism was appropriate circa 2017, but these days JavaScript's gotten a lot more stable.

Sure. With evergreen browsers. For anyone using old devices with outdated hardware--tough luck! They can, I guess, go buzz off and leave you in peace to write Modern JS. After all, that's the most important thing.

Re: htmx

#268
post #197

I really want to use htmx on the next project but I am not sure how to make it handle poor network connections yet. The app I'm building will be used in areas with poor mobile connections - I want to submit a form, add it to a list and say it's pending saving, while the user can add more. Have to use hyperscript probably? Can trivially do it in vanillajs so I'm sure it's possible?

I'll probably just build a native app with godot or something...

Re: htmx

#269
post #194

Earlier quoted context omitted.

Why does documentation need any JavaScript at all beyond opening the hamburger menu?

No need for javascript for the hamburger menu, it is doable with CSS checkbox, see for example the hamburger menu on https://lanyon.getpoole.com/ . Or another example, the teddit reddit-frontend has collapseable threads with the summary/details tags, also works without javascript.

The CSS checkbox method is considered bad for accessibility. They’re adding a popover attribute to use for no JS menus instead.

Re: htmx

#270

Earlier quoted context omitted.

Why does documentation need any JavaScript at all beyond opening the hamburger menu?

You don't need JavaScript for a hamburger menu, I am doing it with pure HTML. Hint: the tag.

Hint: that’s bad for accessibility.
Post reply on HN