Better HN
topnewbestaskshowjobs
Log inSign up

decross

11 karma · joined Oct 24, 2021 (5y ago) · 19 submissions

Submissions

comment 3y ago · link · parent

https://htmx.org

comment 3y ago · link · parent

A right-click/View Source would allow you to reevaluate your initial impression due to the presence of elements introduced in HTML5 (released in 2008).

The fact that you can do that and not stare at a soup of minimized Javascript tells you a lot about htmx.

https://htmx.org/essays/right-click-view-source/

comment 3y ago · link · parent

It definitely does not suit every single project (nothing does!).

This is nicely explained in: https://htmx.org/essays/when-to-use-hypermedia/

comment 3y ago · link · parent

I really recommend reading the essays on https://htmx.org/essays/ They are well-written, opinionated, but not dogmatic. And the book on https://hypermedia.systems/ is a true gem.

comment 3y ago · link · parent

He meant that HTMX can work with a backend written in any language/framework. It doesn't constrain you to use any specific server-side tech.

comment 3y ago · link · parent

Why in the world would I want to split a team in two highly coupled halves that can't deliver any value by themselves? Division of labor? Seriously? Are we back to the 18th century?

comment 3y ago · link · parent

You can embed a "backend" as a service worker and use htmx to interact with it. A proof of concept here: https://github.com/richardanaya/wasm-service

comment 3y ago · link · parent

And young people should get longer sentences? The younger, the longer?

comment 3y ago · link · parent

In Brazil it is common. The root is maybe that fat makes caffeine to spike less and last longer.

comment 3y ago · link · parent

My hunch is that in the first picture there was at least one person inside each car and they seemed to be going to work. In the second picture, there are a lot less people and they are definitely not going to work. Are they getting rid of people and jobs?

comment 3y ago · link · parent

For me, it clicked immediately. It is a simple way to partial updates of the UI, without having to worry about a ton of tooling. It also pushes most of the logic to the backend, which is nice. It also constrains some of the UX decisions, leaving less room for useless craziness.

comment 3y ago · link · parent

just download it and serve it from your own site.

comment 3y ago · link · parent

but contrast that with the Herculean job that is learning angular, react or vue...

comment 3y ago · link · parent

the creator has already answered you, but I will add that there is an htmx extension called client-side-templates here: https://htmx.org/extensions/client-side-templates/

comment 3y ago · link · parent

in a way, he's all of us

comment 3y ago · link · parent

htmx is pretty agnostic with regard to the backend side of things. You can use anything you want, really. There are htmx extensions to Django and I am working on a similar one for Express. Basically, a very simple middleware to deal with custom request and response headers.

comment 4y ago · link · parent

Hmm. What about storage, delivery, returns, etc.? Quote from your source: "Now, I think they’ve underestimated the costs of shipping and warehousing books, and the tremendous cost of accepting returns (for full credit) of unsold books by bookstores — sometimes paying for return shipping, sometimes having the books simply destroyed, and other times selling them in bargain bins for a fraction of the cover price."

comment 4y ago · link · parent

Do you have a good source on that? I have been looking around for these kinds of costs and found nothing I could trust.