| ▲ | flomo 4 hours ago | ||||||||||||||||||||||||||||||||||||||||
Whenever HTMX comes up here, I always think "isn't that just some gobbledy-gook which replaces about 3 lines of imperative jquery?" Anyway, jQuery always did the job, use it forever if it solves your problems. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | sgt 2 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
I pretty much use HTMX and vanilla JS to solve most problems, when I use Django at least. Keeps things simple and gives that SPA feel to the app too. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | gbalduzzi 4 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||
The problem with jQuery is that, being imperative, it quickly becomes complex when you need to handle more than one thing because you need to cover imperatively all cases. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| ▲ | hsbauauvhabzb 3 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
These days I’ve moved to native JS, but hot damn the $() selector interface was elegant and minimal vs document.getElement[s]by[attribute)]. While presumably jquery is slower than native selectors, maybe that could be pre-computed away. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||