4 ms·
In just finished migrating a fairly large client project SPA with a Django backend to just straight Django + HTMX with some Alpine sprinkled in for reactivity.
by WD-42 2y ago
In just finished migrating a fairly large client project SPA with a Django backend to just straight Django + HTMX with some Alpine sprinkled in for reactivity. Went from 100s of JavaScript dependencies to 5.
It feels like a massive weight off my shoulders. The SPA felt like a ticking time bomb.
- robertoandred 2y agoNow you have new dependencies which are their own ticking time bomb.
- WD-42 2y agoNo, I don’t. No new deps server side. Htmx and Alpine are self contained. They have no transitive dependencies, they don’t even require a build step. Worst case I can just vendor them.
- robertoandred 2y agoJust because something is self-contained doesn't mean it isn't a ticking time bomb.
- yawaramin 2y agoAnd also, just because something isn't self-contained, also doesn't mean it isn't a ticking time bomb. Great, now everything is a ticking time bomb. Enjoy!
- WD-42 2y agoSure, given enough time everything will rot. But there's a huge spectrum here. HTMX for example - for it to suddenly stop working browsers would have to collectively drop backwards support for their most basic of features. Now with the SPA it's very possible to have a Vue2 -> Vue3 situation, or just someone pulling a left-pad. Not to mention the build system requiring specific versions of nodejs, etc. And this is just to keep things running, not to speak of adding new stuff. It's not even really comparable.