Live data from Hacker News

Htmx is part of the GitHub Accelerator

htmx.org

251–260 of 520 posts

Re: Htmx is part of the GitHub Accelerator

#251

HTMX reminds me of pjax which I really liked I did a lot of sideprojects in Knockout and one large one in Angularjs 1. I feel all the frontend frameworks need to talk about what they see the problems are and decide how to fix them. I would like some solid foundations and avoidance of common pain and gotchas of scale and complexity. My old sideprojects are broken because I didn't fix library versions. My JSBIN sqlite…

yes, intercooler.js (which was the first version of htmx) was heavily influenced by my experience with pjax!

I used this in the past: https://malsup.com/jquery/taconite/

Re: Htmx is part of the GitHub Accelerator

#252

hi there, as many of you know, i am the creator of htmx and I'm happy to answer any questions about it htmx has seen a surge in popularity, triggered by a video by fireship dev ( https://www.youtube.com/watch?v=r-GSGH2RxJs ) and a series of videos by ThePrimeagen, a popular twitch streamer on it hacker news readers might be interested in the essays I have written on htmx & hypermedia in general here: https://htmx.org…

This is a great project, and reminds me a lot of where folks saw hypertext going many years ago. I have read a little of the website and picked through many of the online examples. One thing I did notice is the preference to update client state (DOM rewrites) based on server HTTP request responses containing full-blown markup. Does the HTMX framework provide concessions for client-side-only triggers and client genera…

Generating some HTML instead of JSON isn't that much data/CPU. But doing all that in the browser might have a big impact on UX performance-wise.

Re: Htmx is part of the GitHub Accelerator

#253

Earlier quoted context omitted.

My main use case will be basic UI interaction, mostly just posting or fetching data from a backend then updating the innerHTML on some element. Vanilla might be enough, but I'm keeping my options open. Also, no compilation step, so no need for npm, etc

IMO that's where alpine.js complements HTMX, you can use HTMX mainly for interfacing with a server and then use alpine.js for any special interaction that does not require a round-trip with the server.

That's my thought as well. Anything that needs new data from the server uses HTMX and if you need to manipulate something already on the page use Alpine, Jquery, vanillajs, or whatever other framework you prefer.

Re: Htmx is part of the GitHub Accelerator

#254
post #99

Earlier quoted context omitted.

I wrote ASP then, and it worked fine. We also wrote our own htmx like handlers. The main reason that people forget is that js was just too slow on the client to really do anything. The only way to get performance was render pieces on the server and replace the client html. I remember having the server render js multi-dimensional arrays consisting of key and html snippet that client js could reference to do html manip…

I'm not sure JS being slow was the reason. It's rather lack of trust that JS can and should be used for such things, and the difficulty of mixing client and server logic together. You kinda want to simplify things and relegate JS simply the role of detecting an event and delegating it to the server for processing and injecting the result back. But JS, from the moment it was introduced, was quite capable of carrying o…

In that time frame I was building very complex applications (semantic graph editors, decision support software for sales teams with 10,000 salespeople, etc.) in frameworks like GWT (Java compilers to Javascript) this wasn't long after the firstversion of Google Docs came out.

Javascript was fast enough back then to make much more complex applications than most people were making back then but the complexity was mind-numbing, particularly considering that you didn't have tools like async/await to help manage asynchronous communications.

I built frameworks for managing the flow of data in that kind of application and didn't feel it was so catastrophic when Microsoft banned synchronous communications in Silverlight... I knew what to do.

Having had that experiment I tend to laugh at today's Javascript frameworks because they work really hard but aren't suitable for the kind of apps I built back then.

Sometimes it seems there is a lot of "lost" technology in software like the production rules systems of the 1980s, CASE systems and Lotus notes from the 1990s, Google docs in the 2000s that are like Stonehenge or the Egyptian Pyramids seen from the state of programming in 2023.

Re: Htmx is part of the GitHub Accelerator

#255
post #196

Earlier quoted context omitted.

while i disagree with what you say, i want to say that i really appreciate you saying something substantial and reasonable, rather than just repeating the vacuous moral-relativist nonsense that is the rest of this thread (i think your comment would be higher-quality if you also deleted your repetition of that vacuous nonsense, though, because it makes it harder to discuss the substantial issues here; there would be n…

> there would be no point in discussing ethical issues at all if moral relativism were correct (...) you wouldn't have bothered to post a comment at all if you were the nihilist you are posing as This is wrong on several levels, including practical and philosophical (and those aspects of it have been covered a lot in moral philosophy). For starters, whether morality is relative or objective has no bearing at all to w…

it sounds like what you are interested in is negotiating mutually beneficial bargains with people, then, or manipulating public opinion in your favor, by applying the currently fashionable ethical norms (or at least appearing to do so) and attempting to shape them to your liking

in the former case, you don't seem to be offering to make any concessions (and in any case, how could you, in a public forum like this), and in the latter case, it seems like it would be in people's best interests to close their ears to you except when your arguments are factual (as opposed to normative); and possibly even then, if their interests are likely to run counter to yours, because selective reporting of facts can manipulate people to act against their own interests just as effectively as outright lies

that's what i mean by 'there would be no point in discussing ethical issues at all if moral relativism were correct'. there is certainly a point in negotiating agreements, or even evaluating who is likely to fulfill their negotiated commitments, but that isn't the same thing as discussing questions of ethics

attempting to return to the substantive questions, perhaps we would do well to promote pseudonymous and even anonymous online interaction (especially for media likely to be used by edgy and troubled teenagers) and not grant governments the ability to eliminate facts from the historical record piecemeal, like beria editing stalin's opponents out of photos

Re: Htmx is part of the GitHub Accelerator

#256

It's so odd to live long enough and see the steady pipeline of "look at this much simpler way of doing web apps, just write HTML, not like the previous complex way" projects, which then turn into the previous complex way as the eyes turn towards the next "simple way of doing web apps, just write HTML...". Angular and React started this way on the frontend, while ASP and PHP started this way on the backend (of course…

>The fact your HTML barely reads like HTML after Tailwind, and reads more like your file is corrupted is I guess not mentioned in the tagline. Not my experience for the record. I use Tailwind in my side project, and it is exactly as convenient as it sounds to write my styles directly into HTML rather than think of a class name, add it in HTML, switch to the proper CSS file (or create it if it doesn't exist and make s…

Sounds like you're using a rather poor IDE.

Re: Htmx is part of the GitHub Accelerator

#257

hi there, as many of you know, i am the creator of htmx and I'm happy to answer any questions about it htmx has seen a surge in popularity, triggered by a video by fireship dev ( https://www.youtube.com/watch?v=r-GSGH2RxJs ) and a series of videos by ThePrimeagen, a popular twitch streamer on it hacker news readers might be interested in the essays I have written on htmx & hypermedia in general here: https://htmx.org…

It might be a weird question,

But why are the websockets and SSE are migrating to extensions?

Re: Htmx is part of the GitHub Accelerator

#258

hi there, as many of you know, i am the creator of htmx and I'm happy to answer any questions about it htmx has seen a surge in popularity, triggered by a video by fireship dev ( https://www.youtube.com/watch?v=r-GSGH2RxJs ) and a series of videos by ThePrimeagen, a popular twitch streamer on it hacker news readers might be interested in the essays I have written on htmx & hypermedia in general here: https://htmx.org…

It might be a weird question, But why are the websockets and SSE are migrating to extensions?

doing them right requires a fair bit of code and I'd like to keep the core AJAX-focused functionality as small as possible

Re: Htmx is part of the GitHub Accelerator

#259
Can anyone explain why Htmx is such a big deal? I really don't get their 'motivation' section on their landing page.

I mean, for example, the first motivation it lists is 'Why should only and be able to make HTTP requests?', why is that an issue? And 'Why should you only be able to replace the entire screen?', I mean that hasn't been an issue since XMLHttpRequest or am I missing something?

Re: Htmx is part of the GitHub Accelerator

#260

How does HTMX work with Tailwind? If I return some HTML from my backend, then the Tailwind scanner won't have found the css selectors, so it won't be in the generated CSS. What am I missing?

Tailwind does let you specify files other than HTML/css. I point mine at .cljs files. Can you point it to whatever files are generating your html?
Post reply on HN