3 ms·
it'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 stu
by exe34 2y ago
it'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