it does not work well with the ever growing restful API backend services to me.
How so? (no snark, genuine) Your frontend makes a request to your server, the expectation is that will respond with html. If you have other services you need to bring in to the mix that responds with JSON then make the request to them from your server, have that parse the JSON in to HTML (most likely some kind of templating system like handlebars) and then send that back to your frontend as html for htmx to handle. O…
Htmx is part of the GitHub Accelerator
161–170 of 520 posts
Re: Htmx is part of the GitHub Accelerator
#162Earlier quoted context omitted.
I'm kind of guessing / reading into their comment here but. Using htmx doesn't give me the feeling of "this is the only way I ever want to do this" but more "if html worked like this I wouldn't use js most of the time." The sense that an opportunity was missed and now we're paying for it in complexity.
The complexity is just shifted around from JS to HTMX (or hypothetically, html). Not a noticeable improvement.
Re: Htmx is part of the GitHub Accelerator
#163Earlier quoted context omitted.
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
"no such right exists" - the law would disagree with you on that one. "Under Article 17 of the UK GDPR individuals have the right to have personal data erased. This is also known as the 'right to be forgotten'." [1] "The right to be forgotten appears in Recitals 65 and 66 and in Article 17 of the GDPR. It states, “The data subject shall have the right to obtain from the controller the erasure of personal data concern…
Re: Htmx is part of the GitHub Accelerator
#164Earlier quoted context omitted.
ASP had some strange things where you could write what looked like a client side handler on a button and it would call a function in the server. Circa 2007 or so it seemed a to be a huge mistake because it didn’t play well with the so-called “model-view-controller” paradigm where, most importantly, the request handler could decide which view to render. (e.g. you fill out a form and if you mad a mistake it redraws the…
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…
But JS, from the moment it was introduced, was quite capable of carrying out a great number of interactions. We tend to project our subjective beliefs on the objective world. We don't see potential in JS and so we didn't use it up to its potential.
I recall working on a webshop back in the day that opened in an embedded IE in the app for a popular music company (so I had also full control over the browser engine and could rely on JS), and there was a complex system of discounts as you add plugins to your cart and so on, and I thought: I'll use JS for this. And despite the discounts were verified on the server side, all my coworkers and my boss were intensely worried about me using JS for this, because I'll make the store insecure, and this is a very noob thing to do and I shouldn't be using JS for this. And... it worked fine. The tech was always capable of this, but none of then would've even TRIED, because they "KNEW" it's not supposed to be done.
Eventually the tide turned, but it turned to another extreme, that is even more BS now. Many websites load more JS code than they load images. Why? Because we subjectively believe the server is not capable of all the richness that JS can deliver. Basically we didn't get smarter about any of this.
We're stupid and led by superstitition about the tech we use, we don't really understand it, we don't grok it. We go by fashion and trends. Most do. And that's the danger of starting a stupid trend. It may take years before the bubble pops.
Re: Htmx is part of the GitHub Accelerator
#165Re: Htmx is part of the GitHub Accelerator
#166Re: Htmx is part of the GitHub Accelerator
#167Earlier quoted context omitted.
React is very diverse community, who are these react bros? I went to a series of JavaScript conferences and React is extremely diverse.
I was recounting the past. I'm sure it is "diverse" ( whatever that means ) now because it became kind of a industry standard for front-ends. Good to see diversity all around, I just wish there also would be diversity of thought and it comes to building web pages. But I guess that would lead to people admitting ~80% of all the stuff they build does not require React or equivalent js frameworks and that would be both…
Re: Htmx is part of the GitHub Accelerator
#168Earlier quoted context omitted.
jQuery's syntax is 10x better than vanilla javascript
Bullshit, the jQuery "Ajax" API is a hellish convoluted nightmare with zero consistency. https://api.jquery.com/category/ajax/ Have you seriously looked at this and thought "yeah thats better than using a single native function (fetch)"? As for the rest of the API - what would you even use besides the css and selector functions? Which again, the native `classList` and a simple bind to the selectors are simpler and le…
$(this).closest(".cont")
for example, is pretty nice in jquery.Re: Htmx is part of the GitHub Accelerator
#169Earlier quoted context omitted.
I'm confused, on what kind of metaphysical plane do you think rights live if you think they exist independently from the law?
— We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. — That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, — That whenever any Form of Government becomes destructive of these ends, it i…
Re: Htmx is part of the GitHub Accelerator
#170Earlier quoted context omitted.
The complexity is just shifted around from JS to HTMX (or hypothetically, html). Not a noticeable improvement.
For many basic & routine web page interactions, I have not found that to be true.