Live data from Hacker News

Htmx is part of the GitHub Accelerator

htmx.org

101–110 of 520 posts

Re: Htmx is part of the GitHub Accelerator

#101

Earlier quoted context omitted.

The native API is much more verbose and less composable. It was a real lost opportunity.

const $ = document.querySelector.bind(document) const $$ = document.querySelectorAll.bind(document)

Oh, I wish it was that simple.

Re: Htmx is part of the GitHub Accelerator

#102
post #65

Earlier quoted context omitted.

Off topic, but: > The right to erasure is also known as ‘the right to be forgotten’. https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-re...

no such right exists; that would be like the right to rob with impunity of course clever demagogues and rhetoricians can write such things into legislation, just as they can write legislation that claims you have no right to speak freely, but that just makes the legislation incorrect, like the famous legislation declaring pi to be exactly 3

[deleted]

Re: Htmx is part of the GitHub Accelerator

#103

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…

Don't forget Polymer, whose main marketing was that it's the tech behind... McD's menu screens. It turned into lit html, I have no idea what the state of that is now, haven't heard from it for a while now.

WebComponents are still very much alive. :) And LitHtml is a very nice wrapper around them.

Re: Htmx is part of the GitHub Accelerator

#104
post #79

Earlier quoted context omitted.

Angular 1, I don't know about Angular 2 had syntax like ng-repeat {{action.text}}

A syntax-based comparison feels a bit... superficial. One is an MVC based SPA framework. The other is best described (in my mind) as syntactic sugar over AJAX calls that replace inner HTMLs of selected targets.

Yeah, honestly (ignoring syntax) it looks A LOT like the original ROR ajax implementation. Having the server render a partial and swaping out the inner html to do a partial page update.

Re: Htmx is part of the GitHub Accelerator

#105
If you think htmx is cool, check out _hyperscript https://hyperscript.org/. Made by the same people, available with htmx I believe.

After seeing _hyperscript, it looks like they may have invented that first, and a lot of people's heads exploded, so they decided to try to make a "gateway drug" to sneakily introduce _hyperscript, and came up with htmx.

Re: Htmx is part of the GitHub Accelerator

#107
post #59

[flagged]

nobody has the right to be forgotten nothing you say can be unsaid; therefore speak judiciously https://uuliveoak.org/Story%20ideas%20-%20service%20or%20cla... > “Now Yankel,” the Rabbi began “go back through the town and collect all of the feathers. Put them back into the pillow and bring the fully stuffed pillow back to me.” > “But Rabbi!!!” Yankel burst out. “That will be impossible. Even as I was walking away fro…

EU Law Disagrees.

Feel free to Geoblock the entire market if you disagree. Many small news sites in the states do this.

Re: Htmx is part of the GitHub Accelerator

#108
post #79

Earlier quoted context omitted.

Angular 1, I don't know about Angular 2 had syntax like ng-repeat {{action.text}}

A syntax-based comparison feels a bit... superficial. One is an MVC based SPA framework. The other is best described (in my mind) as syntactic sugar over AJAX calls that replace inner HTMLs of selected targets.

No - from my perspective - it's important and for understanding maintainability. The syntax helps understand the mechanism of using HTML directives that are picked up by clientside javascript at pageload or AJAX HTML partial replacement, which is what GP was getting at with its comparison to Angular 1. Angular 1 picks up directives the same way (and Knockout).

In react you don't use the mechanism of directives, you use JSX or React.createElement in standard Javascript statements or expressions.

I think it's important because it decides your templating and composition, which is what React solves with its Components.

I played with pjax which is similar.

EDIT: For example, you might not want ng-click in your HTML if you think that is wrong for example, as it's like DHTML and onclick="" (I don't have a perspective on this at this time)

Re: Htmx is part of the GitHub Accelerator

#109
post #12

The twists and turns my career has taken had me pretty much skip the whole front-end JavaScript framework wars so it's nice to see "plain old HTML" make an enhanced comeback.

The site and it's examples do not work with JavaScript disabled.

This is a regression on graceful degradation.

Post reply on HN