3 ms·
Ironically I can read through this code and know exactly what it does with no other context. I don’t even know what swal is but I can still tell what it does.
by WD-42 2y ago
Ironically I can read through this code and know exactly what it does with no other context. I don’t even know what swal is but I can still tell what it does.
- sensanaty 2y agoI mean sure, but compare that to <button @click="doThing"> In Vue. Or just plain old JS onclick in Svelte. By comparison, HTMX is illegible
- WD-42 2y agoWhat does "doThing" do? I can't tell by reading. The above examples, while maybe slightly verbose, are completely self contained!
- sensanaty 2y agoSorry was typing that on my phone so got lazy, `doThing` would be a method/function of some sort. You can also write it inline if you so wish, like `@click="console.log('hello')"`