566 karma · joined Sep 4, 2011 (15y ago) · 218 submissions
louisgarman at gmail dot com
comment 11mo ago · link · parent
comment 11mo ago · link · parent
I really doubt horses would be ambivalent about this, let alone about anything. Or maybe I'm wrong, they were in two minds: oh dear I'm at risk of being put to sleep, or maybe it could lead to a nice long retirement out on a grassy meadow. But they're in all likelihood blissfully unaware.
comment 1y ago · link · parent
But it's an invention. It never previously existed. Yes the penisula was referred to as Italy for a long time and the language is shared across the area and there are cultural similarities. But none of that automatically makes a nation - you don't have to think hard of counter examples. History could have panned out differently. It still could.
I think the bourgeoisies have been enormously successful in giving the impression that these nation states, whether it be Italy or Germany, or India, etc, that they're inevitable, they're permanent and anything else is a perversion. And Garibaldi was one such whose brilliance was to forge a nation so quickly from so many disparate states.
comment 1y ago · link · parent
I didn't. I said:
> * Datastar has a paid-for Pro edition, which is necesssary if you want certain behaviours. HTMX is completely free.
I don't need to spell out why this means something very different to what you think it means.
I'll happily concede on the other two quibbles.
comment 1y ago · link · parent
Interestingly, elements sent via the HTMX websocket extension [1] do use OOB by default.
comment 1y ago · link · parent
[1]: https://templ.guide/
comment 1y ago · link · parent
* Datastar sends all responses using SSE (Server Side Events). Usually SSE is employed to allow the server to push events to the client, and Datastar does this, but it also uses SSE encoding of events in response to client initiated actions like clicking a button (clicking the button sends a GET request and the server responds with zero or more SSE events over a time period of the server's choice).
* Whereas HTMX supports SSE as one of several extensions, and only for server-initiated events. It also supports Websockets for two-way interaction.
* Datastar has a concept of signals, which manages front-end state. HTMX doesn't do this and you'll need AlpineJS or something similar as well.
* HTMX supports something called OOB (out-of-band), where you can pick out fragments of the HTML response to be patched into various parts of the DOM, using the ID attribute. In Datastar this is the default behaviour.
* Datastar has a paid-for Pro edition, which is necesssary if you want certain behaviours. HTMX is completely free.
I think the other differences are pretty minor:
* Datastar has smaller library footprint but both are tiny to begin with (11kb vs 14kb), which is splitting hairs.
* Datastar needs fewer attributes to achieve the same behaviours. I'm not sure about this, you might need to customise the behaviour which requires more and more attributes, but again, it's not a big deal.
comment 1y ago · link · parent
[1]: https://data-star.dev/ [2]: https://data-star.dev/reference/datastar_pro#attributes
comment 1y ago · link · parent
This isn't true. HTMX has native support for "pushing" data to the browser with Websockets or SSE, without "custom" code.
comment 1y ago · link · parent
You're exaggerating for effect. GDP is the total value of all goods and services sold or bought; only a fraction of which is paid for with a credit card. I doubt an F35 is purchased with a Visa.
comment 1y ago · link · parent
Perhaps add an "expand all" button to avoid clicking individually on properties to see their descriptions?
I usually rely on the official generated docs (all on one giant page):
https://kubernetes.io/docs/reference/generated/kubernetes-ap...
comment 2y ago · link · parent
https://leg100.github.io/en/posts/building-bubbletea-program...
24.
Bubble Tea v1.0.0 released(github.com ↗)
1 points · by leg100 · 2y ago · 1 comment
25.
Show HN: Pug – a terminal user interface for Terraform(github.com ↗)
3 points · by leg100 · 2y ago · discuss
comment 2y ago · link · parent
https://go.dev/play/p/mIehOwUWz95
A map is implicitly a pointer to the underlying map structure. When you pass a map, you're passing a copy of a pointer.
27.
Show HN: Pug, a TUI for Terraform(github.com ↗)
5 points · by leg100 · 2y ago · discuss
comment 2y ago · link · parent
What matters is did the soviet's know? There is still much to be declassified.
And of course it's all a bit silly. In the event of an attack would any of this actually pan out and function as it should?