TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What it's like to run Htmx in Production

38 pointsby bnewtonabout 1 year ago

6 comments

everybodyknowsabout 1 year ago
Interesting claim here about engineering org dysfunction:<p>&gt; FE code has gotten so complex that many orgs now have specialized positions - FE and BE. In practice this means that it&#x27;s very hard for any one developer to get a fullstack change out.<p>&gt; Short-term this means that all changes incur extra cost due to context switching and collaboration overhead between FE &#x2F; BE dev<p>&gt; Long-term this means a general architectural bias against doing things fullstack. Both sides will go to great lengths to not have to do things fullstack which often leads to suboptimal architectures throughout. This is how we got heavyweight client state management (Redux), interesting RPC protocols (GraphQL), and the push towards JS-only stacks (NextJS, Nuxt, SvelteKit, etc) - all methods to try and lower the pain of FE &lt;&gt; BE communication.
评论 #39977674 未加载
nesarkvechnepabout 1 year ago
HTMX is closer to REST than your so-called JSON REST API.
评论 #39972604 未加载
lelagabout 1 year ago
I would say that it misses one of the main drawback of using Htmx: it does not force you to create a proper API.<p>When you create a standard single page application, you generally start by building a JSON API on the server side, and a client application that can consumme that API.<p>Htmx server code is different as it just returns HTML code to be inserted back in the page. So while, writing an app with Htmx is very easy for that very reason, you will likely not build a proper public API while you build your app and the day that you realise you need one, you have to write it from scratch.<p>If you know you will need to provide a good public API, building it from the get go and a React&#x2F;Angular app on top might still be worth it.<p>(Just to be clear, I think Htmx is great still.)
评论 #39971553 未加载
评论 #39971205 未加载
评论 #39972602 未加载
评论 #39971031 未加载
000ooo000about 1 year ago
Concedes that there&#x27;s extra network requests and then just completely handwaved it away.
jdmoreiraabout 1 year ago
I&#x27;m not a web dev so my knowledge is limited here.<p>What is the canonical way to do &quot;components&quot; with this htmx workflow though? How do you create an abstraction for a button, or a card, etc... Do you just copy&#x2F;paste the html all the time?<p>Is it just BE templates?
评论 #39970810 未加载
tedunangstabout 1 year ago
I&#x27;d really like to see some production web sites that use htmx.
评论 #39972598 未加载