I enjoyed reading this
I enjoyed reading this. It follows a similar experience with our first htmx website, away from using modern frontends, or just simple jQuery with ajax json data. I remember, working with a co-worker, we planned out the process (a step-by-step on the application like this post) and it made sense to me - but this journey was much harder for my co-worker. Why is this? Simply because he is familiar with MVC pattern of sending json data back and forth, and getting the frontend to update and render it, etc. The idea of html flying with htmx as the behaviour (inside html tags) was just too much. For me, I always preferred the old school way of just letting the server-side generate the html. All htmx does is adds extra functionality. I tried hard to explain that we are sending html back, and to break things down one at a time but each new task was left scratching his head. In the end, our website had somewhere around 20-50 lines of javascript! Much smaller footprint than over 400 lines in our previous project (that being generous). …
Original discussionHTMX is hard, so let's get it right142 source comments · at import