Posts

Why htmx sucks. And why it doesn't.

There's been a lot of hype recently around htmx, especially among backend devs. And if you read Reddit comments you will see both sides, some folks seem to think htmx is the best thing that has happened in web dev while others consider it a complete garbage.  I have been following  htmx  for a while now and I feel like htmx is misunderstood. As with any tool, there is a correct way to use it and a way to misuse it. Let's begin by looking at some reasons why you shouldn't use htmx aka why it sucks. # Why htmx sucks htmx is not a frontend tool. That's right. htmx is a tool for backend devs not for frontend devs. It is a not a frontend framework and people should not be using htmx to build user facing apps. It simply isn't made for this purpose. # The code is garbage If you look at htmx code you will see that it is ... well, let's just say you won't find best programming practices here.  The use of  var  all over the place, almost no modern JavaScript features...