2 ms·
it’s not, but it is a complete specification of behavior, just as <a href=“/clicked”> is
by recursivedoubts 2y ago
it’s not, but it is a complete specification of behavior, just as <a href=“/clicked”> is
- exe34 2y agothat sounds about as helpful as a chocolate teapot.
- recursivedoubts 2y agoI have never used a chocolate teapot, but anchor tags (and form tags) have been an important piece of the success of the World Wide Web as a hypermedia system. htmx generalizes this notion of hypermedia controls in a syntactically symmetric manner, preserving the locality of behavior inherent in those controls. https://dl.acm.org/doi/pdf/10.1145/3648188.3675127 https://dl.acm.org/doi/pdf/10.1145/3648188.3675127
- exe34 2y agoit's not about the tag, it's about the claim that putting /clicked in the href or equivalent is somehow superior to $("#the-button"). click(function () { do stuff here}).
- recursivedoubts 2y agoright exactly, it is superior in Locality of Behavior (LoB) terms because the behavior of the tag is apparent by only looking at it, whereas in the jquery example the behavior is in code that is located elsewhere. It is also inferior in Separation of Concerns(SoC) terms. These two design principles are in conflict and the reason I invented the term LoB was to help people, like myself, who prefer locality to argue for it effectively in software design discussions.
- exe34 2y agoso a comment would have done the same job? you don't need htmx to add a comment.
- recursivedoubts 2y agoman, that's a really good point